From b858358ffbdd14c9b56ac96f035bddccae4d872d Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 8 Jul 2025 08:58:46 +0700 Subject: skema bills and requisition --- fixco_custom/models/purchase_order.py | 8 ++++++++ 1 file changed, 8 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 a623ae4..06f4ef1 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -17,6 +17,7 @@ _logger = logging.getLogger(__name__) class PurchaseOrder(models.Model): _inherit = 'purchase.order' + sale_order_id = fields.Many2one('sale.order', string='Sales Order') amount_discount = fields.Monetary( string='Total Discount', compute='_compute_amount_discount', @@ -28,6 +29,13 @@ class PurchaseOrder(models.Model): default=0.0, tracking=True ) + + source = fields.Selection([ + ('requisition', 'Requisition'), + ('reordering', 'Reordering'), + ('purchasing_job', 'Purchasing Job'), + ('manual', 'Manual') + ], string='Source', default='manual') @api.depends('order_line.price_total', 'biaya_lain_lain') def _amount_all(self): -- cgit v1.2.3