Commit Graph
312 Commits
Author SHA1 Message Date
Cédric Krier 117294f915 Increase version number
--HG--
branch : 7.0
2025-04-26 17:13:19 +02:00
Cédric Krier f667c641ba Prepare release sao-7.0.28
--HG--
branch : 7.0
2025-04-26 17:13:13 +02:00
Cédric Krier 7ad3a78f88 Allow switching to non-form view even if no record is selected
Closes #13511
(grafted from 532aa26b3fa2e4f67078bcb8a300bb6d7610e67d)

--HG--
branch : 7.0
2024-09-24 17:23:12 +02:00
Nicolas Évrard 6370264f6e Ensure that update_selection is called if init_selection has failed
Closes #13960
(grafted from 9e64808503ca4504e9f97f2853841b58f2273757)

--HG--
branch : 7.0
2025-04-03 16:46:56 +02:00
Cédric Krier fdd00582b6 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 : 7.0
2025-03-26 20:07:54 +01:00
Cédric Krier d0808b5c76 Restore asynchronous save but protected by a single promise
The write RPC must be done asynchronously in order to manage any concurrency
exception.
But the asynchronous RPC can only be done sequentially, so we ensure there can
be only one single pending promise.

Closes #13940
(grafted from 8b075636539246e8372b8f2500bd093a5862fe24)

--HG--
branch : 7.0
2025-03-25 13:49:53 +01:00
Cédric Krier 7d8cf17026 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 : 7.0
2025-03-28 16:04:21 +01:00
Cédric Krier e4addb16ae Increase version number
--HG--
branch : 7.0
2025-04-03 00:45:39 +02:00
Cédric Krier a6998eab13 Prepare release sao-7.0.27
--HG--
branch : 7.0
2025-04-03 00:45:34 +02:00
Cédric Krier 0cb50865bd 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 : 7.0
2025-03-10 11:06:00 +01:00
Cédric Krier de874533d2 Increase version number
--HG--
branch : 7.0
2025-03-15 23:02:52 +01:00
Cédric Krier b7ee1f7e8d Prepare release sao-7.0.26
--HG--
branch : 7.0
2025-03-15 23:02:46 +01:00
Nicolas Évrard 0cc54f65a6 Handle errors when processing wizard steps
Closes #13906
(grafted from ab4ac9e315c67207a0855e4314689260ab0b59ba)

--HG--
branch : 7.0
2025-02-13 18:35:32 +01:00
Cédric Krier 23d55bead6 Increase version number
--HG--
branch : 7.0
2025-03-04 22:25:08 +01:00
Cédric Krier de89192a78 Prepare release sao-7.0.25
--HG--
branch : 7.0
2025-03-04 22:25:02 +01:00
Cédric Krier 22bedb2c79 Prevent delete record if screen is not deletable
Closes #13885
(grafted from 55434555b4c8e408cec6b08e53306335c17206ee)

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

--HG--
branch : 7.0
2025-02-22 23:55:57 +01:00
Cédric Krier 5750f69a6c Make save call synchronous
This avoid to trigger multiple save in parallel which may raise a concurrency
exception.

Closes #13848
(grafted from b1c0eb983cebde5a671d4cff8f5bbef285936d2f)

--HG--
branch : 7.0
2025-01-30 10:12:49 +01:00
Cédric Krier 4db8aa5f94 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 : 7.0
2025-01-30 12:25:14 +01:00
Cédric Krier 3eb663a4e9 Increase version number
--HG--
branch : 7.0
2025-02-16 12:01:18 +01:00
Cédric Krier 22d1ecf3f0 Prepare release sao-7.0.24
--HG--
branch : 7.0
2025-02-16 12:01:12 +01:00
Cédric Krier 24c57f098c Store on the screen only the tree states of the current view
Otherwise it is only the tree states of the last view that is restored.

Closes #13822
(grafted from 681adf2400138689f3a9a1e2d2b672057e539482)

--HG--
branch : 7.0
2025-01-16 16:07:36 +01:00
Cédric Krier 8ac0aef8bd 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 : 7.0
2025-01-09 22:54:41 +01:00
Cédric Krier f3701f4a5f 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 : 7.0
2025-01-29 10:42:47 +01:00
Cédric Krier 855037f605 Increase version number
--HG--
branch : 7.0
2025-01-01 20:34:06 +01:00
Cédric Krier 063d2cff76 Prepare release sao-7.0.23
--HG--
branch : 7.0
2025-01-01 20:34:00 +01:00
Cédric Krier f907f489a0 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 : 7.0
2024-12-12 23:39:43 +01:00
Cédric Krier 6e0eda2ede Trigger change on "Selected Records" when predefined export is selected
The change callback set the visibility of the "Ignore search limit".

Closes #13754
(grafted from d174aec6127a60c0d87b09f2b40471737d9d9eb4)

--HG--
branch : 7.0
2024-12-12 18:46:07 +01:00
Cédric Krier 20c9778b36 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 : 7.0
2024-12-18 17:54:06 +01:00
Nicolas Évrard 8dbf822063 Add missing dot on the form-binary class selector
Closes #13766
(grafted from 8a7c5c41b20355d416c55cecc210f479883699c6)

--HG--
branch : 7.0
2024-12-19 17:08:28 +01:00
Nicolas Évrard 1caecadfc0 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 : 7.0
2024-12-16 10:29:26 +01:00
Cédric Krier 008244449e Increase version number
--HG--
branch : 7.0
2024-12-16 19:01:39 +01:00
Cédric Krier 8cd878e083 Prepare release sao-7.0.22
--HG--
branch : 7.0
2024-12-16 19:01:33 +01:00
Cédric Krier 3708dc1f39 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 : 7.0
2024-11-29 13:03:53 +01:00
Nicolas Évrard 94d18f286b 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 : 7.0
2024-11-30 10:24:52 +01:00
Cédric Krier c05a2c1eb9 Increase version number
--HG--
branch : 7.0
2024-12-01 20:00:12 +01:00
Cédric Krier 3d96c1d7cd Prepare release sao-7.0.21
--HG--
branch : 7.0
2024-12-01 20:00:06 +01:00
Cédric Krier e188f44e85 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 : 7.0
2024-11-20 15:52:40 +01:00
Cédric Krier 788cddf20c 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 : 7.0
2024-11-15 15:20:28 +01:00
Cédric Krier 8f89d18192 Test if pre_validate is an empty object
Closes #13675
(grafted from 1d88e5b4e36de11517ae059ea04d352d2bde3161)

--HG--
branch : 7.0
2024-11-13 11:22:21 +01:00
Cédric Krier 5dfe314ef7 Set a width to the nav-tabs to not be included in the min-content computation
When screen with tab domain is displayed in a board, the tab domain increase
the min-content which could overflow the tab content.

Closes #13665
(grafted from 52af7e0a381ddd601e0b6f2e136065c579b4a747)

--HG--
branch : 7.0
2024-11-06 18:11:35 +01:00
Cédric Krier 3aaa03d774 Set grid template to container of board view
Closes #13663
(grafted from 27aed5d80c2c7ca9229faba7c8983a255096fb1f)

--HG--
branch : 7.0
2024-11-06 18:01:51 +01:00
Cédric Krier b35ebbb7aa 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 : 7.0
2024-11-06 18:04:58 +01:00
Cédric Krier f1274d80bd 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 : 7.0
2024-11-04 13:09:34 +01:00
Cédric Krier 1798e57775 Take the first item of single value only with 'in' operator
Closes #13403
(grafted from d826376d08a50b415a2c4b878a2c7652f1f2083b)

--HG--
branch : 7.0
2024-10-28 00:39:53 +01:00
Cédric Krier ab2981143d Do not add field in optional menu if it is excluded
Closes #13618
(grafted from 84c343d199e9a14e7e88d5d78cc68f0465e0c6d5)

--HG--
branch : 7.0
2024-10-22 19:47:27 +02:00
Cédric Krier 410248f577 Load sequence field value of previous record before setting sequence
Closes #13604
(grafted from 6b5ee66e595e4a8bb25f21c85dce2db721f3ecb8)

--HG--
branch : 7.0
2024-10-15 14:50:08 +02:00
Cédric Krier 5df29cdd7e Increase version number
--HG--
branch : 7.0
2024-11-06 21:28:44 +01:00
Cédric Krier a7858cea59 Prepare release sao-7.0.20
--HG--
branch : 7.0
2024-11-06 21:28:38 +01:00
Cédric Krier dd03a5c068 Do not fail to set value of the wrong type to Dict Entry widget
Closes #13621
(grafted from 380efdfcf2f12fd82a23a883eb9941d238f4f714)

--HG--
branch : 7.0
2024-10-23 13:56:53 +02:00