diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-07 11:48:39 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-07 11:48:39 +0700 |
| commit | 29577f0e4a62a3ff74baa7a7a28c1b978d80942b (patch) | |
| tree | ca26d3be0d660c24662f8c2b264ecc76d3c5d9f6 | |
| parent | 02a1cfe4a4166d1b10ac82d9d89a1be64c870649 (diff) | |
add field ltc on line purchase orders
| -rwxr-xr-x | indoteknik_custom/models/purchase_order_line.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py index b082eae9..b2bfc7cd 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') + is_ltc = fields.Boolean(string='Is LTC?', help='centang ini jika barang sudah di LTC') note = fields.Char(string='Note') def compute_price_vendor(self): diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index df174257..b5a9b4ad 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -183,6 +183,7 @@ <tree editable="top" create="false" delete="false"> <field name="product_id" readonly="1"/> <field name="indent"/> + <field name="is_ltc"/> <field name="note"/> </tree> </field> |
