Olivier Dony
cd3f52ba10
[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
2016-05-30 09:07:31 +02:00
..
2016-05-30 09:07:31 +02:00
2016-04-24 02:59:16 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-17 15:40:01 +02:00
2016-04-03 02:59:02 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-04-10 02:59:08 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-15 02:56:59 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-04-24 02:59:16 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 02:57:51 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-04-03 02:59:02 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-03-21 09:10:34 +01:00
2016-04-19 15:34:45 +02:00
2016-04-14 11:24:48 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 02:57:51 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-04-24 02:59:16 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-12 17:37:17 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-15 02:56:59 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-04-01 00:28:28 +02:00
2016-05-01 00:28:37 +02:00
2016-05-29 02:58:42 +02:00
2016-04-01 00:28:28 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-01 02:57:51 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-30 09:07:31 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 00:28:37 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 00:28:37 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-27 13:35:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 00:28:37 +02:00
2016-04-10 02:59:08 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-01 02:57:51 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-01 00:28:37 +02:00
2016-05-15 02:56:59 +02:00
2016-05-30 09:07:31 +02:00
2016-05-01 00:28:37 +02:00
2016-04-03 02:59:02 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-30 09:07:31 +02:00
2016-05-01 02:57:51 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-01 02:57:51 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-15 02:56:59 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-08 02:57:57 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-04-24 02:59:16 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-05-08 02:57:57 +02:00
2016-05-15 02:56:59 +02:00
2016-05-29 02:58:42 +02:00
2016-05-29 02:58:42 +02:00
2016-03-27 03:14:28 +02:00
2016-05-29 02:58:42 +02:00
2016-05-15 02:56:59 +02:00
2016-05-29 02:58:42 +02:00
2016-05-22 02:57:09 +02:00