diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-28 15:28:19 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-28 15:28:19 +0700 |
| commit | 2f0031eee133ce8d0683a3d527fc492dba4aac60 (patch) | |
| tree | 2d934cd5cbdc43f514e88221fc5048a6db399430 /fixco_custom/models/purchase_order.py | |
| parent | e9b9be0af8edef9b3ae26143c1783870e099d262 (diff) | |
| parent | ef46de403cd90ca29f0e7df772fbc7dc7a2c9110 (diff) | |
Merge branch 'main' of bitbucket.org:altafixco/fixco-addons
pull
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. |
