summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order_sales_match.py
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-23 09:50:40 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-23 09:50:40 +0700
commit310f92c9b825a458618daa3b00581b790f8e009e (patch)
tree2b8957db596c86525c009ef5e62e23ccd6397f8f /indoteknik_custom/models/purchase_order_sales_match.py
parent58a6ca75b9b1bb07ea958ab4bfb553140daeb8f8 (diff)
parent8d649f97dade329859b5770d1f3972cdd7233f97 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into pum-v3
Diffstat (limited to 'indoteknik_custom/models/purchase_order_sales_match.py')
-rw-r--r--indoteknik_custom/models/purchase_order_sales_match.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order_sales_match.py b/indoteknik_custom/models/purchase_order_sales_match.py
index 084b93f7..ea25a3b1 100644
--- a/indoteknik_custom/models/purchase_order_sales_match.py
+++ b/indoteknik_custom/models/purchase_order_sales_match.py
@@ -29,6 +29,11 @@ class PurchaseOrderSalesMatch(models.Model):
purchase_line_id = fields.Many2one('purchase.order.line', string='Purchase Line', compute='_compute_purchase_line_id')
hold_outgoing_so = fields.Boolean(string='Hold Outgoing SO', related='sale_id.hold_outgoing')
bu_pick = fields.Many2one('stock.picking', string='BU Pick', compute='compute_bu_pick')
+ so_header_margin = fields.Float(
+ related='sale_id.total_percent_margin',
+ string='SO Header Margin %',
+ readonly=True
+ )
def compute_bu_pick(self):
for rec in self: