Skip to content

Commit dadfa14

Browse files
committed
fixup! [ADD] account_reconcile_sale_order
1 parent 0123c92 commit dadfa14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

account_reconcile_sale_order/models/account_bank_statement_line.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def _process_reconciliation_sale_order_invoice(self, order):
3636
"""
3737
Invoice selected sale orders and post the invoices
3838
"""
39+
clean_context = {
40+
key: value
41+
for key, value in self.env.context.items()
42+
if key != "force_price_include"
43+
}
44+
order = order.with_context(clean_context) # pylint: disable=context-overridden
3945
if order.state in ("draft", "sent"):
4046
order.action_confirm()
4147
invoices = order._create_invoices()

0 commit comments

Comments
 (0)