summaryrefslogtreecommitdiff
path: root/fixco_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-08 15:24:11 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-08 15:24:11 +0700
commite46be164dc1e419cdbfd0c0cf587fadc63beef3e (patch)
treec0bd1682d84f23dafbdb66ac3e7cc9b7abc7cd10 /fixco_custom/models/purchase_order.py
parentb858358ffbdd14c9b56ac96f035bddccae4d872d (diff)
reordering rules and manage stock
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
-rw-r--r--fixco_custom/models/purchase_order.py6
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',