From ef46de403cd90ca29f0e7df772fbc7dc7a2c9110 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Wed, 28 Jan 2026 15:27:16 +0700 Subject: add bill status PO --- fixco_custom/models/purchase_order.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fixco_custom/models/purchase_order.py') diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 07ac1d9..89c1d68 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -59,6 +59,11 @@ class PurchaseOrder(models.Model): discount_total = fields.Float('Discount Total', help = 'Total Discount for Each Product', copy=False, default=0.0) bill_date = fields.Date('Bill Date', copy=False) uangmuka_exist = fields.Boolean('Uang Muka Exist', copy=False) + bill_status = fields.Selection([ + ('cancel', 'Cancel'), + ('waiting', 'Waiting Operations'), + ('ready', 'Ready to Bill'), + ], string='Bill Status', copy=False, readonly=True, default='waiting') def _prepare_invoice(self): """Prepare the dict of values to create the new invoice for a purchase order. -- cgit v1.2.3