diff --git a/purchase_ux/__manifest__.py b/purchase_ux/__manifest__.py index 5668658a..315cb48e 100644 --- a/purchase_ux/__manifest__.py +++ b/purchase_ux/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name': 'Purchase UX', - 'version': "13.0.1.3.0", + 'version': "13.0.1.4.0", 'category': 'Purchases', 'sequence': 14, 'summary': '', @@ -31,6 +31,7 @@ 'depends': [ 'purchase', 'account_ux', + 'account_fiscal_position_update', ], 'data': [ 'wizards/purchase_change_currency_views.xml', diff --git a/purchase_ux/models/purchase_order_line.py b/purchase_ux/models/purchase_order_line.py index f2aab3c5..6e472139 100644 --- a/purchase_ux/models/purchase_order_line.py +++ b/purchase_ux/models/purchase_order_line.py @@ -162,6 +162,8 @@ def _compute_invoice_qty(self): lines = AccountInvoiceLine.search([ ('move_id', '=', invoice_id), ('purchase_line_id', '=', rec.id)]) + for line in lines: + line.move_id.fiscal_position_change() invoice_qty = -1.0 * sum( lines.mapped('quantity')) if AccountInvoice.browse( invoice_id).type == 'in_refund' else sum(