From 00b52fcd86d8da1ee83058a30c3836f46804afdc Mon Sep 17 00:00:00 2001 From: Martronic SA Date: Fri, 12 Oct 2018 14:52:10 +0200 Subject: [PATCH] Fix structured communication Adds 'structured' to the invoice_reference_type2communication_type ans the 'structured' type is added by the module itself in account_invoice but breaks the account_move_line.py as explained here: https://github.com/OCA/bank-payment/issues/495 --- account_payment_order/models/account_payment_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index b24c03a70..b286a7541 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -126,7 +126,7 @@ class AccountPaymentLine(models.Model): localization modules""" # key = value of 'reference_type' field on account_invoice # value = value of 'communication_type' field on account_payment_line - res = {'none': 'normal'} + res = {'none': 'normal', 'structured': 'structured'} return res @api.multi