diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-08 15:24:11 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-08 15:24:11 +0700 |
| commit | e46be164dc1e419cdbfd0c0cf587fadc63beef3e (patch) | |
| tree | c0bd1682d84f23dafbdb66ac3e7cc9b7abc7cd10 /fixco_custom/models/purchase_order.py | |
| parent | b858358ffbdd14c9b56ac96f035bddccae4d872d (diff) | |
reordering rules and manage stock
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 06f4ef1..75263b1 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -17,6 +17,12 @@ _logger = logging.getLogger(__name__) class PurchaseOrder(models.Model): _inherit = 'purchase.order' + automatic_purchase_id = fields.Many2one( + 'automatic.purchase', + string='Automatic Purchase Reference', + ondelete='set null', + index=True + ) sale_order_id = fields.Many2one('sale.order', string='Sales Order') amount_discount = fields.Monetary( string='Total Discount', |
