From e46be164dc1e419cdbfd0c0cf587fadc63beef3e Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 8 Jul 2025 15:24:11 +0700 Subject: reordering rules and manage stock --- fixco_custom/models/purchase_order_line.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'fixco_custom/models/purchase_order_line.py') diff --git a/fixco_custom/models/purchase_order_line.py b/fixco_custom/models/purchase_order_line.py index 8cac3d1..eee5a7a 100644 --- a/fixco_custom/models/purchase_order_line.py +++ b/fixco_custom/models/purchase_order_line.py @@ -2,10 +2,16 @@ from odoo import models, fields, api class PurchaseOrderLine(models.Model): _inherit = 'purchase.order.line' - + + automatic_purchase_line_id = fields.Many2one( + 'automatic.purchase.line', + string='Automatic Purchase Line Reference', + ondelete='set null', + index=True + ) discount = fields.Float( string='Discount (%)', - digits='Discount', + digits='Discount', default=0.0 ) discount_amount = fields.Float( -- cgit v1.2.3