changeset 48b261015e4c in modules/account_eu:4.8 details: https://hg.tryton.org/modules/account_eu?cmd=changeset;node=48b261015e4c description: Only update ec_sales_list_code when it's diferent from template value
issue7992 review49711002 (grafted from 82622b97b9730e40696ce87802bfa56663dc9566) diffstat: account.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r c9785a274c4f -r 48b261015e4c account.py --- a/account.py Tue Feb 19 22:42:22 2019 +0100 +++ b/account.py Fri Apr 12 21:16:26 2019 +0200 @@ -17,7 +17,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