From 0037ab8019daad5c1cfccd0007284c54b5c22253 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 26 Oct 2023 11:56:16 +0700 Subject: add indent tab in purchase order --- indoteknik_custom/models/purchase_order.py | 1 + indoteknik_custom/views/purchase_order.xml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index d62d7b1e..f9cd7f5b 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -48,6 +48,7 @@ class PurchaseOrder(models.Model): note_description = fields.Char(string='Note', help='bisa diisi sebagai informasi indent barang tertentu atau apapun') has_active_invoice = fields.Boolean(string='Has Active Invoice', compute='_compute_has_active_invoice') description = fields.Char(string='Description', help='bisa diisi sebagai informasi indent barang tertentu atau apapun') + purchase_order_lines = fields.One2many('purchase.order.line', 'order_id', string='Indent', auto_join=True) def _compute_has_active_invoice(self): for order in self: diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index d564f260..8f7ea6df 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -79,6 +79,7 @@ + @@ -96,6 +97,12 @@ {'readonly': [], 'required': True} + + + + + + @@ -165,4 +172,16 @@ True + + + purchase.order.line.indent.tree + purchase.order.line + + + + + + + + \ No newline at end of file -- cgit v1.2.3