changeset 82622b97b973 in modules/account_eu:default details: https://hg.tryton.org/modules/account_eu?cmd=changeset;node=82622b97b973 description: Only update ec_sales_list_code when it's diferent from template value
issue7992 review49711002 diffstat: account.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r d5d2278886f3 -r 82622b97b973 account.py --- a/account.py Sun Apr 07 19:50:02 2019 +0200 +++ b/account.py Fri Apr 12 21:16:26 2019 +0200 @@ -16,7 +16,8 @@ def _get_tax_value(self, tax=None): value = super(TaxTemplate, self)._get_tax_value(tax=tax) - value['ec_sales_list_code'] = self.ec_sales_list_code + if not tax or tax.ec_sales_list_code != self.ec_sales_list_code: + value['ec_sales_list_code'] = self.ec_sales_list_code return value