Commit Graph
11 Commits
Author SHA1 Message Date
Cédric Krier a8620a1725 Do not allow to mutate dict value
A copy of the value is always returned so if it is modified it does not modify
the internal value of the record.
So to update Dict value, a new dictionary must be set on the field.

Closes #13374
(grafted from 82b0280d4a08c48b2ab85b4ababe2031aee9a7a2)

--HG--
branch : 6.0
2024-06-30 01:49:42 +02:00
Cédric Krier e813933845 Consider null value as data for binary field
null value is set when the widget is cleared so it should not try to read it
again from the server.

Closes #12926
(grafted from a93577ad420c3bab09fb905efab954e4aaf0fbab)

--HG--
branch : 6.0
2024-01-11 16:30:10 +01:00
Cédric Krier 7614b407ee Convert negative id value as None when set by the client
Domain inversion may force a unique value based on the default value from
PYSON evaluation. In such case it means that no record can be set.

Closes #12799
(grafted from 48463dae759ea1473b258ed905ba2c15fe96e10c)

--HG--
branch : 6.0
2023-12-17 23:39:16 +01:00
Cédric Krier bb06f47f81 Set One2Many fields later
Closes #12740
(grafted from 7bbf9b5e4c5d1aa2c4c6ada3220e5379249dcf1d)

--HG--
branch : 6.0
2023-11-14 00:05:51 +01:00
Cédric Krier 027a71cc4f Validate field set later
Closes #12739
(grafted from 31958cc6bbae3c46dbaeb919221ceb317f5e2ccc)

--HG--
branch : 6.0
2023-11-14 00:05:17 +01:00
Cédric Krier b8e6f5c0f0 Iterate over removed and deleted records when adding record to group
In Javascript for...in iterate over properties but we want to iterate over
values with for...of. Otherwise record added back is not un-removed or
un-deleted.

Closes #12663
(grafted from 9ba209792c8be4b422751e91c20bb39cbf28c61d)

--HG--
branch : 6.0
2023-10-30 17:52:48 +01:00
Cédric Krier 7547af9ebf Record.get_eval must return only loaded values
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.

Closes #12415
(grafted from 9a60185d21f0652c35045c89b8a34029ac3b9214)

--HG--
branch : 6.0
2023-09-24 19:01:07 +02:00
Nicolas Évrard 158d1384d7 Handle string value set from domain inversion in MultiSelection fields
Closes #12181
(grafted from cdca201f1dd7c8a25de757ba93b9ff883aa9bac3)

--HG--
branch : 6.0
2023-04-03 17:02:51 +02:00
Nicolas Évrard 3b7a0953aa Use a promise based API for Record.pre_validate()
Closes #12039
(grafted from 2e62e2dc88702ffdcb98ac3185b92e08ae2af937)

--HG--
branch : 6.0
2023-01-25 15:14:26 +01:00
Nicolas Évrard 91a7c02151 Use record from group when setting O2M from values
Closes #11951
(grafted from 231cf237be3f243c4105e6f532220c62ae042abe)

--HG--
branch : 6.0
2022-12-23 23:54:21 +01:00
Cédric Krier afab1e5061 Prepare migration to monorepo
--HG--
branch : 6.0
2022-12-16 14:46:32 +01:00