When comparing a one2many to None we should search on the Target model in order
to ensure the correct handling of the active field. Otherwise there might be
records that wouldn't be found by the search yet their one2many fields come up
empty.
Closes#14370
(grafted from 715161fe8b3351072d7a52e698c95e75269b06a9)
--HG--
branch : 7.0
For example the production module may include input or output moves without
lot.
Closes#14396
(grafted from aa1bb0828ed19d9612d40b4fa2a242178edc54ec)
--HG--
branch : 7.0
As moved quantity is the sum of float, it may carry rounding issue so it must
be rounded before comparison.
Closes#14386
(grafted from 760368f8aa28083ad69311ce0f424c0de3d54b3d)
--HG--
branch : 7.0
When the field is used in a domain adding this filter ensure that comparison
with None will succeed when there are only inactive groups in the field.
Closes#14369
(grafted from 6ec84dbcdde99641b803ebcdfee5aaa0edf9f548)
--HG--
branch : 7.0
We might want to execute the wizard on a specific model even without selecting
some of its records
Closes#14291
(grafted from 93ccf0b37bb2fcf18a44ef13e37b6029487b9f62)
--HG--
branch : 7.0
It is not allowed to delete a sale line if the sale state is not draft or
cancelled.
Closes#14376
(grafted from 02d1fb1eaefe00ba07037e70ce0827530c513546)
--HG--
branch : 7.0
When a line is removed on Shopify, the quantity of the sale line is set to 0 in
Tryton because Shopify refund the line.
So such line without product must not prevent to process the sale as they will
not generate any stock move nor invoice line.
Closes#14375
(grafted from bbd807ca4b87dc0470bd5f3db69681e7371c6d13)
--HG--
branch : 7.0
As the method is using instances to construct the exported data, the access
must be checked explicitly.
Closes#14366
(grafted from 4e3e875a295e533244d0f28c1cf2efe5187489ba)
--HG--
branch : 7.0
Use .read and .write instead of .browse and .save when editing field via the
HTML editor.
Closes#14364
(grafted from 1103361fdaf6d9da12fe6455d871a4eba089d768)
--HG--
branch : 7.0
07831c6eddaf implemented the default value as `false` but in tryton it has
always been `True` since b8658ba902a5.
Some save calls relies on the record being reloaded like in the editable tree
when selecting another row.
This synchronise the behavior of all save calls between tryton and sao.
Closes#14345
(grafted from 1c20b8ef85a418d3c00e1495deb203317b4355c1)
--HG--
branch : 7.0
Using the local context allow us to access the context of the field shown by
the graph when the graph shows a One2Many field.
Closes#14341
(grafted from f186b83936dbde32aca06b3a329bf519df2c8232)
--HG--
branch : 7.0