Commit Graph
56637 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 33aa8bad09 Limit tax kind of invoice tax based on invoice type 2023-01-27 11:55:05 +01:00
Cédric Krier cebf486f6f Enforce unique creation of singleton with lock and constraint
Closes #10748
2023-01-30 14:54:07 +01:00
Cédric Krier f3489dc20c Add cache for check-trytond-rng
As the job install rnc2rng, it is better to use cache.
2023-02-04 21:19:55 +01:00
Cédric Krier 79768b4890 Manage RPCReturnException in proteus
35ed4aa50b16 introduced this new exception so proteus execute the returned
action when configured with trytond.
2023-02-02 18:09:52 +01:00
Cédric Krier 58d00ed942 Search also for select tag for the focus chain
Closes #12051
2023-01-30 00:44:18 +01:00
Cédric Krier 3be0472924 Test all depends of fields
Since 4ceb8ad07bd5 the depends attribute contains only some of the depending
fields. Tests should include the computed depends.
2023-01-27 14:04:37 +01:00
Cédric Krier e90e274a82 Make moves_drop invisible when moves_drop is empty 2023-01-28 15:05:02 +01:00
Cédric Krier 4639991356 Remove readonly states for account type in budget line
There is no lines field on budget line.
2023-01-27 14:02:57 +01:00
Nicolas Évrard 5414f334e8 Restore tree sates on List Form
Closes #12023
2023-01-19 19:03:42 +01:00
Nicolas Évrard 7d4a991104 Do record (pre)validation and saving on selection change for list-form views
Closes #12025
2023-01-29 00:56:28 +01:00
Nicolas Évrard 0d679effe2 Warn when cancelling a move related to an invoice
Closes #4981
2023-02-02 18:50:26 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier a6419fd273 Append domain label to link
The domain labels are replacing the link label instead of being appended.
2023-01-26 14:56:44 +01:00
Cédric Krier e7d357098f Set correct limit/offset in search_count of Link
a96bf0b0b065 adds limit to the search_count call but the argument position is
wrong in the call for the Link widget.
2023-01-26 14:55:50 +01:00
Nicolas Évrard 556918f7c5 Check that fields used to order are sortable
Closes #11747
2023-01-16 11:12:29 +01:00
Nicolas Évrard e2a56a6cac Add searchable and sortable methods on Field 2023-01-02 22:12:09 +01:00
Cédric Krier 5403074f1d Convert empty value as null instead of 0 in Dict numeric fields
Closes #12038
2023-01-25 00:38:36 +01:00
Cédric Krier 65c8d8dd36 Set width on numeric input instead of the input group
Closes #12037
2023-01-25 00:28:00 +01:00
José Antonio Díaz Miralles 2668ff013a Do not write creation values in ModelSingleton 2023-02-03 20:08:26 +01:00
Nicolas Évrard 5ea2598611 Call set_modified on record in set_client
403bc7a95b0a introduced set_modified as a record method but not a field one.
It was unfortunately called on the field in set_client in the same commit.

Closes #12061
2023-02-01 17:54:26 +01:00
Cédric Krier 7958f04d66 Set default badge and sent record message when current record is None
Closes #12032
2023-01-24 01:00:12 +01:00
Cédric Krier ef11936771 Apply muted visual for deleted or removed row
Closes #7355
2023-01-24 00:41:48 +01:00
Cédric Krier 9375dcb878 Ensure right model is used in Many2One sql_format
Closes #6074
2023-01-23 00:12:44 +01:00
Cédric Krier 68753ff402 Run action from button with proteus 2023-01-17 14:39:18 +01:00
Cédric Krier 9ae4f0e80c Copy original state of wizard to avoid side effect
Closes #4948
2023-01-22 01:41:52 +01:00
Cédric Krier 6edf1f9943 Use different pattern for sale extra and sale extra line
Also get_pattern functions are removed in favor of parameters in get_lines.

Closes #4746
2023-01-22 01:07:02 +01:00
Cédric Krier 79991ef718 Skip unknown icon instead of trying to read it again
Closes #3722
2023-01-22 00:06:38 +01:00
Cédric Krier 349dd77ae5 Add barcode function on product identifier 2022-12-26 22:32:23 +01:00
Cédric Krier 871695b912 Add support for barcode and QR code
Closes #11791
2022-12-26 22:32:03 +01:00
Cédric Krier 00f9cec64a Use the hostname instead of host to retrieve authentication services
The host may contain the port number which is not a valid host for the
ServerProxy.
2023-01-26 18:36:13 +01:00
Cédric Krier 7010cd1717 Lock journal period when automatically creating one
This avoids uniqueness constraint error in case of concurrent creation.

Closes #10747
2023-01-21 18:47:49 +01:00
Cédric Krier a228bb153b Cancel Stripe Setup Intent using the right id
Closes #12031
2023-01-23 16:24:14 +01:00
Nicolas Évrard 1fdfe31b1e Get directly the string value of Selection fields in non editable views
Closes #10331
2023-01-29 01:12:24 +01:00
Cédric Krier 51d2a1ad1a Set cursor on type of identifier
This is the first field to fill when creating a new identifier.
2023-01-30 00:41:30 +01:00
Cédric Krier 3c506fe15d Add ButtonActionException and RPCReturnException
The RPCReturnException returns the result method instead of raising an
exception.
The ButtonActionException launch an action instead of executing the button.

Closes #12009
2023-01-17 13:26:42 +01:00
Cédric Krier 8532fa3bd5 Update One2Many validate to use promise based API of pre_validate
Closes #12039
2023-01-30 00:16:07 +01:00
Cédric Krier ee5cb27962 Create lot for output product when needed
When the output product has a sequence and a lot is required, we create a new
lot to set on the output move.

Closes #11923
2023-01-24 10:53:23 +01:00
Cédric Krier 8ee974fb19 Add prefix and suffix as optional column of sequence list
Closes #5424
2023-01-22 16:50:38 +01:00
Cédric Krier 86587f8c94 Use exception logger when catching exception 2023-01-26 18:33:40 +01:00
Cédric Krier 4573a5c90e Call preventDefault as soon as possible in sao
This is safer in case exception is raised before so the browser may try to
submit the form and trigger a reload of the application.

Closes #6419
2023-01-27 00:03:00 +01:00
Cédric Krier defb428339 Do not register tests module when pool is not started for testing
Closes #6846
2023-01-23 23:00:29 +01:00
Cédric Krier fbbd4ac109 Use only 2 digits for module percentage
Closes #5838
2023-01-22 23:39:18 +01:00
Cédric Krier fecffb3124 Update purchase request state after the purchase transition
Closes #6362
2023-01-23 00:43:49 +01:00
Cédric Krier debf8aabfa Use tzinfo.tzname instead of key to display timezone on cron
key is a specific to ZoneInfo implementation when tzname is part tzinfo API.

Closes #12036
2023-01-25 00:53:43 +01:00
Nicolas Évrard e1361ddac3 Use arrow functions in Sao.Window.Form.response 2023-01-26 22:46:53 +01:00
Nicolas Évrard 45043d706e Use a promise based API for Record.pre_validate()
Closes #12039
2023-01-25 15:14:26 +01:00
Cédric Krier 575527bf60 Do not check access for action window without model
The check was introduced in d41d48d68cdf but without ensuring that the action
has a model to check.

Closes #12029
2023-01-26 21:28:28 +01:00
Cédric Krier ae0775abd0 Activate tests module in setup of FieldMany2OneTreeTestCase 2023-01-23 00:14:26 +01:00
Cédric Krier 639168a7b0 Fill warehouse locations in stock_shipment_measurements tests
Since 6efb7bc9d60f the warehouse locations are required but they are not
filled in unit test because on_change's are not called.

Closes #12045
2023-01-27 12:18:14 +01:00
Sergi Almacellas Abellana 20ddd2e911 Include supervised employees in timesheet reporting 2023-01-26 12:17:52 +01:00