Skip to content

Commit

Permalink
[ADD] account_payment_group_financial_surcharge: compatibility with A…
Browse files Browse the repository at this point in the history
…R edi

Add conext key in order to be used to identify and auto complete missing
fields required for EDI
  • Loading branch information
zaoral committed Feb 7, 2023
1 parent 1577ff5 commit 2181083
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@ def post(self):
else:
journal = self.env['account.journal'].search([('type', '=', 'sale'), ('company_id', '=', self.company_id.id)], limit=1)
wiz = self.env['account.payment.group.invoice.wizard'].with_context(
active_id=self.id, internal_type='debit_note').create({
is_automatic_subcharge=True, active_id=self.id, internal_type='debit_note').create({
'journal_id': journal.id,
'product_id': product.id,
'tax_ids': [(6, 0, taxes.ids)],
Expand Down

0 comments on commit 2181083

Please sign in to comment.