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_line.py | |
| parent | b858358ffbdd14c9b56ac96f035bddccae4d872d (diff) | |
reordering rules and manage stock
Diffstat (limited to 'fixco_custom/models/purchase_order_line.py')
| -rw-r--r-- | fixco_custom/models/purchase_order_line.py | 10 |
1 files changed, 8 insertions, 2 deletions
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( |
