diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-09-14 13:30:14 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-09-14 13:30:14 +0700 |
| commit | 98bdb05daa79c46b0a1f4284d19e65ed3a7d2f48 (patch) | |
| tree | 719b6efcfe210ea71fd16a445069af7d482ceac8 | |
| parent | 2e9f95e8201692317d1ce23f6992fdb0e37dc95c (diff) | |
bug fix delete purchase order line cause of calculate margin match
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index afa67cf2..8a47482a 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -75,7 +75,7 @@ class PurchaseOrder(models.Model): for purchase in self: match = self.env['purchase.order.sales.match'] result = match.read_group( - [('purchase_order_id.id', '=', purchase.id)], + [('purchase_order_id', '=', purchase.id)], ['margin_item'], [] ) |
