diff options
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
