Commit Graph
159 Commits
Author SHA1 Message Date
Cédric Krier 92c9467b9c Always include changed field when calling on_change_with
Since d142b33fa3ab the on_change_with relies on _changed_value.
So in order to correctly detect if a xxx2Many field has some record removed,
we need to have the value of the client.

Closes #12837
2023-12-15 19:10:38 +01:00
Cédric Krier 2b0d50afc4 Compare leaf values only of the same type to sort domain
Closes #12792
2023-12-12 18:02:14 +01:00
Nicolas Évrard e084ca5d66 Use a standard reporting mecanism for all HTTP errors 2023-11-13 10:40:21 +01:00
Cédric Krier 2ff6251c0e Do not compute domain inversion when displaying column that is not a field
Since c320a786923f the field is needed to compute domain inversion so we
should not compute domain inversion for non field.

Closes #12814
2023-12-10 23:32:43 +01:00
Nicolas Évrard f756c5f2e3 Insert new keys in dictionary while respecting the key sequence
Closes #12750
2023-11-14 10:20:07 +01:00
Cédric Krier 5f2793f75c Hide URL button when the field is empty
The disabled attribute does not prevent the user to click on the empty link.

Closes #12747
2023-11-14 15:23:36 +01:00
Cédric Krier 77660e3932 Do not disable button and action on readonly records
Backed out changeset 0e988bac37ba

Closes #12651
2023-11-14 14:25:04 +01:00
Cédric Krier 6ebbe6d5d7 Set One2Many fields later
Closes #12740
2023-11-14 00:05:51 +01:00
Cédric Krier b75207c1cb Validate field set later
Closes #12739
2023-11-14 00:05:17 +01:00
Cédric Krier e58a569f23 Do not force value for single list on multi-value field
Fields based on multi-value must not be forced to the single value of a list.

Closes #12737
2023-11-14 00:00:15 +01:00
Cédric Krier e63fe001cb Do not scroll into view empty element
Closes #12783
2023-12-03 01:51:48 +01:00
Cédric Krier 3af76aa548 Select first record when refreshing attachment preview
Since ab82d479eca1 no record is set when displaying screen.

Closes #12756
2023-11-16 18:23:14 +01:00
Cédric Krier 1b1bbc5390 Use screen methods to activate or not the next/previous buttons of attachment preview
Closes #12756
2023-11-16 18:22:04 +01:00
Cédric Krier c3a8f6bea9 Fix call to Sao.Logger.error
Closes #12778
2023-11-27 21:35:24 +01:00
Cédric Krier b93f265fcd Submit form only if scan_code is submit
Close #12764
2023-11-20 20:41:34 +01:00
Cédric Krier 84d4f09f56 Increase the size of expander
Closes #12733
2023-11-11 19:37:53 +01:00
Cédric Krier adea79e356 Prevent switching row when double click on expander
Closes #12732
2023-11-11 19:34:27 +01:00
Cédric Krier 389d7a1143 Do not execute action on row active if there is no selected id
Closes #12731
2023-11-11 19:31:35 +01:00
Cédric Krier fb034737db Set grab cursor only on draggable-handle class
Closes #12730
2023-11-11 19:27:03 +01:00
Cédric Krier a918b8245d Hide tree-menu column on sao menu
Closes #12729
2023-11-11 19:24:19 +01:00
Cédric Krier 3ffd756e7f Select first visible siblings when page is hidden
We need to search for all siblings because the next page may also be
invisible.

Closes #12553
2023-11-06 18:53:39 +01:00
Cédric Krier e4702d47ba Do not set offset in counting domain of link
173ecc4f452d moved the offset parameter into the domain.

Closes #12725
2023-11-09 15:03:32 +01:00
Cédric Krier bf9bfdcd8d Test JSON-RPC response ID 2023-10-22 12:19:29 +02:00
Nicolas Évrard a42cb450f7 Add timeout parameter on RPC calls
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier 6ea6082b78 Wrap long label to 80 chars
Closes #12618
2023-10-05 18:29:20 +02:00
Cédric Krier 4556b58e57 Set button sensitive on One2Many widget after screen display promise is done
The method to set button sensitive needs the view type to be set since
7d8c4076363f.

Closes #12691
2023-10-31 21:57:09 +01:00
Cédric Krier 38da6a0451 Increase version number 2023-10-30 18:51:13 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier f1ab6513b3 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
2023-10-29 13:49:30 +01:00
Cédric Krier 204a5d7625 Set current record explicitly after loading records on screen
Since ab82d479eca1 screen load does not set current record but some widget
relies on it. So they must set explicitly the current record they need.
Also when a current record is not needed, there is no need to call display
after loading because load already calls display.
2023-10-29 12:59:58 +01:00
Cédric Krier e529c624f5 Disable switch button on non form view without selected record
This prevents to switch to a form view without a record.
2023-10-25 13:36:40 +02:00
Cédric Krier 1ab2948473 Do not set current record when displaying screen
Changing the current record while displaying trigger record_message which
calls set_buttons_sensitive. As the view is not yet updated, it is considered
as modified and the state of the buttons are no more valid.

Closes #12664
2023-10-25 12:22:31 +02:00
Cédric Krier c577fad900 Update translations [skip ci] 2023-10-28 14:15:23 +02:00
Cédric Krier cfde98e54a Backed out changeset fc478f7d7004 2023-10-28 00:16:32 +02:00
Nicolas Évrard a09de147a6 Add timeout parameter on RPC calls
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier bace374c3e Limit colspan to the number columns
Since e5446fb8d4ce the colspan value is used the grid css rules so it must be
limited to the number of columns.

Closes #12655
2023-10-22 17:22:29 +02:00
Cédric Krier 9673660703 Clear cached string of selection fields when client changes the value
Closes #12656
2023-10-19 15:49:30 +02:00
Cédric Krier b7027f89bd Do not pass this as argument of new_ of One2Many
211e8f0bc762 removed the event argument but the conversion to arrow function
added this as argument.
2023-10-19 15:06:43 +02:00
Cédric Krier 058b8988a0 Use more explicit message for unknown column header when autodetecting CSV
Closes #12631
2023-10-11 11:54:27 +02:00
Cédric Krier 325c4866a6 Use distinct icons for save and download
Closes #12627
2023-10-09 14:41:24 +02:00
Cédric Krier 0108d926c5 Ensure to set grid template after the widgets have been displayed 2023-10-02 17:29:19 +02:00
Cédric Krier d61e939339 Do not use .hidden class to mark cell in grid as hidden
In e5446fb8d4ce the .hidden class is added to cells to remove the padding of
empty but Boostrap defines the same class with display none.
So once a cell is marked as hidden, it stays hidden.
2023-10-02 17:28:01 +02:00
Cédric Krier ccf653da1d Support create record from autocomplete with default values 2023-09-26 23:45:07 +02:00
Cédric Krier 96c2cd16f1 Use defaults dictionary for new default values
Replace the rec_name argument by a dictionary of default values.
2023-09-26 14:55:34 +02:00
Cédric Krier 92b3416d79 Add autocomplete method on ModelView 2023-09-25 17:22:40 +02:00
Sergi Almacellas Abellana 81c3d0c95c Set focus on Many2One entry after clearing its value in sao
Closes #12550
2023-10-07 19:14:23 +02:00
Cédric Krier 1c27be9a3e Record.get_eval must return only loaded values
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.

Closes #12415
2023-09-24 19:01:07 +02:00
Cédric Krier d2908701c6 Use dedicated method to skip user warning 2023-09-24 13:23:53 +02:00
Cédric Krier 01b47f30c8 Remove own view search access rules
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:29 +02:00
Cédric Krier 0dfb4dc591 Remove own export access rules
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:40 +02:00