summaryrefslogtreecommitdiff
path: root/addons/website_google_map/static/src/css
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-05-27 11:38:20 +0200
committerOlivier Dony <odo@openerp.com>2016-05-30 09:07:31 +0200
commitcd3f52ba1064000483f1a4cd781cf576767b4e01 (patch)
treefb8c987e25da6f108add0eb39cb452e9735e5afe /addons/website_google_map/static/src/css
parent270b2d0a784cccacfd72ceaea9f9aefadd995bc5 (diff)
[FIX] account,*: preserve deactivated taxes
By default, when reading a m2m field, entries that are deactivated in the destination table are not included. This behavior is desirable in some cases (e.g. for "tags" or "categories", but not for entries that significantly impact other field values in the parent record, such as taxes. The problem is rather obvious: when displaying a paid invoice that used taxes that are now deactivated, the taxes are hidden while they still affect the computed amount. And after cancelling + resetting to draft, the tax is not taken into account anymore, while still being linked. Forcing the field-level (python) domain to include both active and inactive entries solves the problem: - when reading, displaying and recomputing values, deactivated taxes will be included. - when trying to pick a tax, deactivated entries will still be ignored, as expected. This commit applies the technique to all m2m fields that refer to taxes. Fixes #12066 opw-677751
Diffstat (limited to 'addons/website_google_map/static/src/css')
0 files changed, 0 insertions, 0 deletions