Commit Graph
186 Commits
Author SHA1 Message Date
Cédric Krier e908874b3c Declare vals_to_set on the common block where it is used
e38f22986aac reuse vals_to_set later so linter may complain about it not being
defined.
(grafted from 81360b8ae682fb56f85d4ad6f5f779e0418cc3ce)

--HG--
branch : 6.0
2025-04-30 08:44:05 +02:00
Cédric Krier f67e161722 Use locale format in domain parser and search filter for numbers
Closes #13966
(grafted from c8d97facfb0b24bfbcc8f2335f3ad0218a39f900)

--HG--
branch : 6.0
2025-04-07 23:43:31 +02:00
Cédric Krier beeef130fb Compute digits of float value before applying factor
When applying the factor, we introduce new rounding issue which falsify the
computation of digits.
So it is better to compute the digits using the initial value (coming from the
string parsing) and update the digits based on the order of the factor.

Closes #13964
(grafted from 3606a9f176d0312d9645d05902b74192391538e4)

--HG--
branch : 6.0
2025-04-04 18:51:30 +02:00
Nicolas Évrard 53d8329ce4 Use hasOwnProperty to check for key presence in object
(grafted from cf8342493b04bbe07b172f2e078549ef3de00210)

--HG--
branch : 6.0
2025-04-15 18:38:45 +02:00
Nicolas Évrard b02be9ab3d Do not set twice the result of an on_change call in a x2many
Closes #13971
(grafted from e38f22986aac2e37fa5b2ca448152f49698475e6)

--HG--
branch : 6.0
2025-04-15 16:14:37 +02:00
Cédric Krier 7e43412c85 Increase version number
--HG--
branch : 6.0
2025-04-26 17:13:40 +02:00
Cédric Krier 8e7040ec30 Prepare release sao-6.0.58
--HG--
branch : 6.0
2025-04-26 17:13:34 +02:00
Nicolas Évrard 3778c748ba Ensure that update_selection is called if init_selection has failed
Closes #13960
(grafted from 9e64808503ca4504e9f97f2853841b58f2273757)

--HG--
branch : 6.0
2025-04-03 16:46:56 +02:00
Cédric Krier 635498c642 Change current record for the first selected only if there is no current record
#4028 added the behavior to apply the selected record also on form view the
first time.
But when switching to a calendar view from a form view, the tree states is
stored with the current record. If the calendar view is cleared (always with
sao via the search_filter), then the tree_states_done is cleared and on the
second switch to the form view the current record is override by record stored
in the tree states (from the first form switch).

Closes #13939
(grafted from 5719977cd18ed02fc485a0bc8be4abc6b4aec6b3)

--HG--
branch : 6.0
2025-03-26 20:07:54 +01:00
Cédric Krier dec2b0da9f Check for new record only when saving an actual current record
49cbc9b99ed8 added the calculation of a new variable but before the test that a
current record is actually being saved.

Closes #13946
(grafted from 383b2df462a149197e6e795d595aa3ae1d07f611)

--HG--
branch : 6.0
2025-03-28 16:04:21 +01:00
Cédric Krier 43ca73f93a Increase version number
--HG--
branch : 6.0
2025-04-03 00:46:09 +02:00
Cédric Krier a2fbc39154 Prepare release sao-6.0.57
--HG--
branch : 6.0
2025-04-03 00:46:03 +02:00
Cédric Krier 881e08873a Do not use instanceof on value of Date and DateTime of Dict field
Instead we must use the attributes isDate and isDateTime.

Closes #13845
(grafted from c5b215bb328104a51f8d26d1f3e9e50f588d6568)

--HG--
branch : 6.0
2025-03-10 11:06:00 +01:00
Cédric Krier b174df4710 Increase version number
--HG--
branch : 6.0
2025-03-15 23:04:24 +01:00
Cédric Krier af11bfce5d Prepare release sao-6.0.56
--HG--
branch : 6.0
2025-03-15 23:04:18 +01:00
Nicolas Évrard 044b2b2c37 Handle errors when processing wizard steps
Closes #13906
(grafted from ab4ac9e315c67207a0855e4314689260ab0b59ba)

--HG--
branch : 6.0
2025-02-13 18:35:32 +01:00
Cédric Krier 08a4598727 Increase version number
--HG--
branch : 6.0
2025-03-04 22:26:04 +01:00
Cédric Krier 9c92696b43 Prepare release sao-6.0.55
--HG--
branch : 6.0
2025-03-04 22:25:58 +01:00
Cédric Krier d37cffc764 Prevent delete record if screen is not deletable
Closes #13885
(grafted from 55434555b4c8e408cec6b08e53306335c17206ee)

--HG--
branch : 6.0
2025-02-22 23:56:54 +01:00
Cédric Krier 9cd4816b72 Prevent saving record for readonly screen
Closes #13885
(grafted from f2e9cece042f1b1aa845ab8e4f4031647bf3cd8b)

--HG--
branch : 6.0
2025-02-22 23:55:57 +01:00
Cédric Krier c00e62a8e3 Update the URL when creating new record
When record saved is new, the URL must be updated just like if the view was
switched.

Closes #13849
(grafted from 49cbc9b99ed8883aac4bd1f252d6100a20cc9864)

--HG--
branch : 6.0
2025-01-30 12:25:14 +01:00
Cédric Krier ab564fd8ec Increase version number
--HG--
branch : 6.0
2025-02-16 12:01:47 +01:00
Cédric Krier ee2665e3e9 Prepare release sao-6.0.54
--HG--
branch : 6.0
2025-02-16 12:01:41 +01:00
Cédric Krier 1ff3269993 Remove min-width for input of type file of Binary widget
The input file must stay inside the button.

Closes #13810
(grafted from 8ea803eac582266585aa6c8c28efac8c1849f186)

--HG--
branch : 6.0
2025-01-09 22:54:41 +01:00
Cédric Krier 3d57cbe400 Update method names called by key-press on binary widget
Since 87806105f07d the corresponding methods have been renamed in BinaryMixin.

Closes #13844
(grafted from 6bb90cfd5794153f8194254fd866fffe0a57489a)

--HG--
branch : 6.0
2025-01-29 10:42:47 +01:00
Cédric Krier f1f88ba2f1 Increase version number
--HG--
branch : 6.0
2025-01-03 11:53:43 +01:00
Cédric Krier 42697721a2 Prepare release sao-6.0.53
--HG--
branch : 6.0
2025-01-03 11:53:36 +01:00
Cédric Krier 800d07847c Bind callback for the context screen switch view
d6efdc9cbe47 removed wrongly the binding.

--HG--
branch : 6.0
2025-01-03 11:37:17 +01:00
Cédric Krier 00f997bd46 Increase version number
--HG--
branch : 6.0
2025-01-01 20:34:27 +01:00
Cédric Krier 71d7a8b860 Prepare release sao-6.0.52
--HG--
branch : 6.0
2025-01-01 20:34:21 +01:00
Cédric Krier c9d5328692 Return the attachment promise in attach callback
This way the button stays disabled until the drop down menu is filled.

Closes #13755
(grafted from d7e6a9ed2b9979edbae45789d1daf0c2a2351bac)

--HG--
branch : 6.0
2024-12-12 23:39:43 +01:00
Cédric Krier c2310ff235 Set screen to ScreenContainer at instantiation
Many methods of ScreenContainer relies on the screen being set.
And there is no reason to not set the screen at instantiation as long as show
filter refresh the bookmarks.

Closes #13757
(grafted from 16f208d5248b270306edee488d913c65924dd727)

--HG--
branch : 6.0
2024-12-18 17:54:06 +01:00
Nicolas Évrard a90ff8c3eb Add missing dot on the form-binary class selector
Closes #13766
(grafted from 8a7c5c41b20355d416c55cecc210f479883699c6)

--HG--
branch : 6.0
2024-12-19 17:08:28 +01:00
Nicolas Évrard c0d07f0615 Do not set the Group's context when setting a default group on xxx2Many
The context of the field is dynamic so evaluating it only once when creating
the group make it static.
Also the group is already evaluating the parent field context on the fly when
its context is retrieved.

Closes #13726
(grafted from b21813a75b5beeb625b1e9533cbc498b7872555f)

--HG--
branch : 6.0
2024-12-16 10:29:26 +01:00
Cédric Krier 6c07d300b5 Increase version number
--HG--
branch : 6.0
2024-12-16 19:02:05 +01:00
Cédric Krier 5e7eb2b071 Prepare release sao-6.0.51
--HG--
branch : 6.0
2024-12-16 19:01:58 +01:00
Cédric Krier e3d09269ce Properly disable the select button of Binary widget when readonly
The button is indeed a div which must have the .disabled CSS class and an input
which should be hidden when readonly.

Closes #13713
(grafted from 834f7f6079c61d5312c97b5fe61eb75b46a676c5)

--HG--
branch : 6.0
2024-11-29 13:03:53 +01:00
Nicolas Évrard a707a20efe Parse child of group tags at the end
This allows to preserve the order of the state widgets in the form which is
important when evaluating the emptiness of a group

Closes #13622
(grafted from b01fd46f44f2923cbd5a91323c592fa8cfb18a57)

--HG--
branch : 6.0
2024-11-30 10:24:52 +01:00
Cédric Krier 1fb60b1f6b Increase version number
--HG--
branch : 6.0
2024-12-01 20:00:38 +01:00
Cédric Krier 5d8530a061 Prepare release sao-6.0.50
--HG--
branch : 6.0
2024-12-01 20:00:32 +01:00
Cédric Krier 4106444d6a Create new context record with default value
Screen.new_ is returning already a promise that is resolved after the call to
default_get. This ensure that display is triggered after having set the default
value.

Closes #13697
(grafted from 7484bb16c12f887d44c9f18bfc5504974cde50e0)

--HG--
branch : 6.0
2024-11-20 15:52:40 +01:00
Cédric Krier c87aab577b Remove new lines characters when comparing record name of Many2One and Reference
This avoid to trigger a reset of the field if the record name has such character.

Closes #13687
(grafted from cac71113f210bce90c55f6a6c6f32703654cdc59)

--HG--
branch : 6.0
2024-11-15 15:20:28 +01:00
Cédric Krier d339c47831 Test if pre_validate is an empty object
Closes #13675
(grafted from 1d88e5b4e36de11517ae059ea04d352d2bde3161)

--HG--
branch : 6.0
2024-11-13 11:22:21 +01:00
Cédric Krier 20e3288ada Create tab content of board before retrieving the view
If the view is already cached, the callback is executed directly so the content
must have been created.

Closes #13664
(grafted from adb8f7b0c738061d48d44499066545f5468a2d3d)

--HG--
branch : 6.0
2024-11-06 18:04:58 +01:00
Cédric Krier 6a701e0a8f Accept object has type for Greater statements
If the PYSON statement has the type 'object', it can be a Date, DateTime or
TimeDelta which is allowed for comparison.

Closes #13645
(grafted from df6e3c10a5105e545e1aa8e58c3c087285146a58)

--HG--
branch : 6.0
2024-11-04 13:09:34 +01:00
Cédric Krier 5b43d4eacf Load sequence field value of previous record before setting sequence
Closes #13604
(grafted from 6b5ee66e595e4a8bb25f21c85dce2db721f3ecb8)

--HG--
branch : 6.0
2024-10-15 14:50:08 +02:00
Cédric Krier 5bc4ddeb93 Increase version number
--HG--
branch : 6.0
2024-11-06 21:30:25 +01:00
Cédric Krier 4d2bc52a1d Prepare release sao-6.0.49
--HG--
branch : 6.0
2024-11-06 21:30:19 +01:00
Cédric Krier 7320b9f057 Do not fail to set value of the wrong type to Dict Entry widget
Closes #13621
(grafted from 380efdfcf2f12fd82a23a883eb9941d238f4f714)

--HG--
branch : 6.0
2024-10-23 13:56:53 +02:00
Cédric Krier ed15911ab3 Quote empty string when formatting list value of domain
This is needed to keep the empty string in the list on a second parsing.

Closes #13558
(grafted from 747825bc93a35fef995094be5ca9d7e04c414692)

--HG--
branch : 6.0
2024-10-02 17:06:58 +02:00