From 3382cc7cf9224a34bc46373d693bc2a6fd71eb5e Mon Sep 17 00:00:00 2001 From: Katherine Zaoral Date: Mon, 13 Feb 2023 15:12:18 +0000 Subject: [PATCH] [ADD] account_payment_group_financial_surcharge: compatibility with AR edi Add conext key in order to be used to identify and auto complete missing fields required for EDI Original commit d334b536b5b98034fb7018450bdbdbc460ea1e4f closes ingadhoc/account-payment#350 Related: ingadhoc/odoo-argentina-ee#181 Signed-off-by: Ignacio Cainelli Signed-off-by: Katherine Zaoral --- .../models/account_payment_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_group_financial_surcharge/models/account_payment_group.py b/account_payment_group_financial_surcharge/models/account_payment_group.py index 260ac1b4..8d8cdf6a 100644 --- a/account_payment_group_financial_surcharge/models/account_payment_group.py +++ b/account_payment_group_financial_surcharge/models/account_payment_group.py @@ -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)],