Skip to content

Commit

Permalink
fixup! [ADD] account_reconcile_sale_order
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Jul 19, 2024
1 parent 0123c92 commit dadfa14
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def _process_reconciliation_sale_order_invoice(self, order):
"""
Invoice selected sale orders and post the invoices
"""
clean_context = {
key: value
for key, value in self.env.context.items()
if key != "force_price_include"
}
order = order.with_context(clean_context) # pylint: disable=context-overridden
if order.state in ("draft", "sent"):
order.action_confirm()
invoices = order._create_invoices()
Expand Down

0 comments on commit dadfa14

Please sign in to comment.