summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-12-06 11:05:10 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-12-06 11:05:10 +0700
commit02a1cfe4a4166d1b10ac82d9d89a1be64c870649 (patch)
tree155713e64464f6a34d1e265bf298febeb197e897
parentba29eec0050a0e47c9344f4a7fd4e42785779a53 (diff)
add note for purchase order line
-rwxr-xr-xindoteknik_custom/models/purchase_order_line.py1
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml3
2 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py
index 2e91bb69..b082eae9 100755
--- a/indoteknik_custom/models/purchase_order_line.py
+++ b/indoteknik_custom/models/purchase_order_line.py
@@ -31,6 +31,7 @@ class PurchaseOrderLine(models.Model):
price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor')
so_line_id = fields.Many2one('sale.order.line', string='ID SO Line')
indent = fields.Boolean(string='Indent', help='centang ini jika barang indent')
+ note = fields.Char(string='Note')
def compute_price_vendor(self):
for line in self:
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 08dde8e1..df174257 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -100,7 +100,7 @@
</xpath>
<xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before">
- <page string="Indent" name="purchase_order_lines_indent">
+ <page string="Info" name="purchase_order_lines_indent">
<field name="purchase_order_lines"/>
</page>
</xpath>
@@ -183,6 +183,7 @@
<tree editable="top" create="false" delete="false">
<field name="product_id" readonly="1"/>
<field name="indent"/>
+ <field name="note"/>
</tree>
</field>
</record>