Commit Graph
46 Commits
Author SHA1 Message Date
Cédric Krier 3119c6106c Increase version number
--HG--
branch : 6.0
2023-11-03 17:54:03 +01:00
Cédric Krier 2e0a2873bf Prepare release sao-6.0.32
--HG--
branch : 6.0
2023-11-03 17:53:55 +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
Cédric Krier effbb51ff8 Bind callback of history_revisions to the tab form
bd73cefcf802 backported code that uses `this` but the upper versions are using
arrow functions.

Closes #12642

--HG--
branch : 6.0
2023-10-13 09:16:00 +02:00
Cédric Krier 8b2dc43345 Increase version number
--HG--
branch : 6.0
2023-10-05 00:04:54 +02:00
Cédric Krier 05610779a1 Prepare release sao-6.0.31
--HG--
branch : 6.0
2023-10-05 00:04:42 +02:00
Cédric Krier 40ad63767d Do not use save button for readonly screen
Even if save_current is set, a readonly screen is never saved on response.

Closes #12538
(grafted from 557766ce97feda3facfdfee7eb88da2692b9f559)

--HG--
branch : 6.0
2023-08-30 15:50:30 +02:00
Cédric Krier 154fc66d48 Set visibility of active button when screen is displayed
Setting it on the domain parser property does not ensure that it is always set
if the parser has been cached or the context screen is not valid.
Also it is not right that accessing a property trigger a change of state.
As the button visibility can change between views, the active domain must only
be added if the button is currently visible.

Closes #12549
(grafted from 00093fcf58f2e473cef7b0d8c3e87c2c3e425b7f)

--HG--
branch : 6.0
2023-09-04 18:32:52 +02:00
Cédric Krier c099cb1e8c Select current revision when showing the revision popup
Closes #12472
(grafted from b5220d0a264e82702a522cd891d83371411acecb)

--HG--
branch : 6.0
2023-08-14 19:44:38 +02:00
Cédric Krier dd7757d451 Do not use the lower revision when selected revision is empty
Closes #12472
(grafted from 17ff80636eb21be4fd90d1de98ce05e0c274be87)

--HG--
branch : 6.0
2023-08-14 19:43:52 +02:00
Cédric Krier d2066e1313 Increase version number
--HG--
branch : 6.0
2023-05-17 22:41:24 +02:00
Cédric Krier 3766c2b650 Prepare release sao-6.0.30
--HG--
branch : 6.0
2023-05-17 22:41:00 +02:00
Cédric Krier 3290703081 Declare blob as variable in image_url
(grafted from a1f60a5423395af9f974237424b9776f2b9913b3)

--HG--
branch : 6.0
2023-05-17 12:00:23 +02:00
Cédric Krier 464954a9cb Set type to Blob for SVG image
Without proper type, browsers do not render SVG image from Blob.
So we try to guess if it is an SVG image by trying to parse it as XML.
For other types, browsers render them without type.

Closes #12201
(grafted from b4bc4a5f10c503c99a0e7d8bd8df76a8881a4c0d)

--HG--
branch : 6.0
2023-04-30 00:57:46 +02:00
Cédric Krier 126e44a420 Format sum without digits
Closes #12204
(grafted from b96579a49fa33288c9a10c71746c9dd51aada49c)

--HG--
branch : 6.0
2023-04-30 00:06:09 +02:00
Cédric Krier c8ba4eb1ea Restore scroll position to the position before loading more rows
When the scroll is at the bottom (and a footer is present), when new rows are
added the scroll stay at the bottom which trigger again to load more rows.
This continue until reaching the end of the tree.
To prevent this behavior we restore the position of the scroll using the
height from the top.

Closes #12223
(grafted from 6bcec872fdb13b1f3222c0a08757b44c5877d79c)

--HG--
branch : 6.0
2023-04-28 12:56:15 +02:00
Cédric Krier 47ca3495b2 Do not add multiple times a more row
(grafted from 0172717f00343da444594ba330bc3c2e1b275212)

--HG--
branch : 6.0
2023-04-28 12:53:04 +02:00
Cédric Krier 7c5803c5d7 Increase version number
--HG--
branch : 6.0
2023-05-03 18:41:31 +02:00
Cédric Krier 4a3b6e3bb6 Prepare release sao-6.0.29
--HG--
branch : 6.0
2023-05-03 18:41:22 +02:00
Cédric Krier c33a3ecce2 Deduce evaluation length from the size limit of One2Many
Closes #12227
(grafted from 40b71ead2171d09fdd86c112b094b9de28d446d4)

--HG--
branch : 6.0
2023-04-19 10:45:29 +02:00
Cédric Krier 2aeb4c8412 Do not set s nor p parameter to export URL if screen has no limit
Closes #12212
(grafted from 9356e9d17de966478109068ff458d68aa86e811a)

--HG--
branch : 6.0
2023-04-12 18:40:49 +02:00
Cédric Krier 1076ad75fe Set limit attribute only if defined in URL
Closes #12211
(grafted from c242bc152fb39bafb90581710aefbe8260d54178)

--HG--
branch : 6.0
2023-04-12 18:35:52 +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
Cédric Krier 42174bfd1f Increase version number
--HG--
branch : 6.0
2023-02-17 19:31:08 +01:00
Cédric Krier 1066e15524 Prepare release sao-6.0.28
--HG--
branch : 6.0
2023-02-17 19:30:51 +01:00
Nicolas Évrard 2d657f919c Do not trigger button on not selected records
Closes #11824
(grafted from 08779343f15d8d37b859218172796e01692ac1db)

--HG--
branch : 6.0
2023-02-03 18:19:31 +01:00
Cédric Krier 0c4734dca8 Update One2Many validate to use promise based API of pre_validate
Closes #12039
(grafted from ec2a2ebc47a61443a3c08b1c5af658c061789c0e)

--HG--
branch : 6.0
2023-01-30 00:16:07 +01: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
Cédric Krier 60a94f46d6 Search also for select tag for the focus chain
Closes #12051
(grafted from 93ea98d89723ccef930e856981a9534face1e807)

--HG--
branch : 6.0
2023-01-30 00:44:18 +01:00
Cédric Krier f2b248fa6c Append domain label to link
The domain labels are replacing the link label instead of being appended.
(grafted from 7f231dc8435da071d8b45c582fa03d83a2d62059)

--HG--
branch : 6.0
2023-01-26 14:56:44 +01:00
Cédric Krier 4436731771 Convert empty value as null instead of 0 in Dict numeric fields
Closes #12038
(grafted from 19675c62ab6ce40063c941c4aa26db297504e009)

--HG--
branch : 6.0
2023-01-25 00:38:36 +01:00
Cédric Krier 714b9b43ea Increase version number
--HG--
branch : 6.0
2023-02-05 21:58:40 +01:00
Cédric Krier ebc2fc9158 Prepare release sao-6.0.27
--HG--
branch : 6.0
2023-02-05 21:58:32 +01:00
Cédric Krier 125a361165 Instantiate always Screen for xxx2Many fields with the same parameters
The screen must be instantiated with the context of the parent screen so
eventual field_view_get would give the same result.
The limit must always be set to None/null to ensure to load all the records.
The breadcrumb must be set to show navigation to the user.

Closes #3140
(grafted from ced0956c41cd1192b98eb4a9e9e23f85c86b6240)

--HG--
branch : 6.0
2023-01-21 19:37:19 +01:00
Cédric Krier 7eea5f6852 Increase version number
--HG--
branch : 6.0
2023-01-15 18:42:49 +01:00
Cédric Krier 8ed11ed1aa Prepare release 6.0.26
--HG--
branch : 6.0
2023-01-15 18:42:42 +01:00
Cédric Krier fb506e998d Convert multiselection into selection for screen domain parser
When the selection of multiselection fields is a method, it must be converted
into a list like the selection fields.

Closes #11968
(grafted from 6022eeabc29f86185121f2da0563cadba1d70a4d)

--HG--
branch : 6.0
2022-12-28 10:41:52 +01:00
Cédric Krier abf4a2a980 Increase version number
--HG--
branch : 6.0
2023-01-02 23:16:16 +01:00
Cédric Krier 969171b673 Prepare release 6.0.25
--HG--
branch : 6.0
2023-01-02 23:16:08 +01:00
Nicolas Évrard 3ae0ab1689 Do not use default record size limit when it is null
Closes #11924
(grafted from 0136f8c9141c00001a8a14f84589d54dd3b79014)

--HG--
branch : 6.0
2022-12-29 10:51:47 +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
Nicolas Évrard 16de998d1b Use left part of domain leaf in unique_value return value
The left part must be returned because when the value is unique we also use the
name of field for further checks

Closes #11952
(grafted from 5ae26db33565f1d67e5eb2ae975f5c16a38cd4d9)

--HG--
branch : 6.0
2022-12-20 13:37:06 +01:00
Cédric Krier da23ab2e75 Prepend tfoot before thead
The dropdown from thead must be above the tfoot.

issue11920
review443971003
(grafted from 8006a6158ec2859ba99fc18a1997f729ab1121a4)

--HG--
branch : 6.0
2022-12-10 00:42:52 +01:00
Cédric Krier 7c275d29fb Prepare migration to monorepo
--HG--
branch : 6.0
2022-12-17 17:14:49 +01:00
Cédric Krier afab1e5061 Prepare migration to monorepo
--HG--
branch : 6.0
2022-12-16 14:46:32 +01:00