diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-10-26 11:56:16 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-10-26 11:56:16 +0700 |
| commit | 0037ab8019daad5c1cfccd0007284c54b5c22253 (patch) | |
| tree | ace14e2743636a6dccb7b21db3ec0fd2db568895 /indoteknik_custom/models | |
| parent | cdd2e38987e4db045809b5af65fc12c16cf20186 (diff) | |
add indent tab in purchase order
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |
