diff options
| -rwxr-xr-x | indoteknik_custom/models/purchase_order_line.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 3 |
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> |
