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 : 6.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 : 6.0
Use .read and .write instead of .browse and .save when editing field via the
HTML editor.
Closes#14364
(grafted from 1103361fdaf6d9da12fe6455d871a4eba089d768)
--HG--
branch : 6.0
Restoring a fields.Dict value failed before using this pure SQL solution.
Also such a solution will be more efficient by minimizing the amount of python
code run.
Closes#14031
(grafted from c81b7d05a51c491f1c7060506144bf50d395c075)
--HG--
branch : 6.0
Changing the configuration value is not enough as its value is cached in the
global variable.
Closes#14248
(grafted from 2967a503290b9b6d724a1da46b80523e75536179)
--HG--
branch : 6.0
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.
Closes#14093
(grafted from a56b25f536568b808bc4c57b6cee03408eaf06f2)
--HG--
branch : 6.0
Since version 0.8 werkzeug set the header automatically by default.
Closes#14010
(grafted from 5d2842d92f356a260afaa974ab5a413031505e95)
--HG--
branch : 6.0
Cache instance can be created on usage like in ValueMixin, so a process may not
have an instance of the cleared cache.
Closes#14067
(grafted from f87b9d37d071aba0b1eaea2c5e9d6accac06aa74)
--HG--
branch : 6.0
The process_lines of ModelStorage.import_data pop rows when importing One2Many.
But if the transaction has to be restarted for example if a lock is needed, the
original data from the request has been altered for the second call losing some
or all the data to be imported.
Closes#13984
(grafted from 2cb96c1427d7c0edcb1c9b5b410e220db3f8958e)
--HG--
branch : 6.0
The TableHandler adds the table name as prefix to the constraint name so when
comparing with the integrity error message, it should also be added.
Especially if the constraint name is hashed by the TableHandler conversion
because the result is completely different.
Closes#13922
(grafted from 57e97b6d957e1b472eea3fb7bbdf2ecf03abfc6a)
--HG--
branch : 6.0
Since 87456218dcc9, record with NULL field is include in nested negative clause
but this should not applied if the operand is or contains None.
Closes#13911
(grafted from 993d890dd786424c2cd00009045ad95a09075e72)
--HG--
branch : 6.0
This permit to keep the connection alive when the database is killing idle
connections.
Closes#13902
(grafted from 12e80f41c37e1f77d1ae539e84989956a70da0d9)
--HG--
branch : 6.0
It is not possible from the clients to force to store None value instead of
empty string.
Closes#13890
(grafted from f7b12ada27377ec42a05b539791855e6f64c497f)
--HG--
branch : 6.0