Commit Graph
58607 Commits
Author SHA1 Message Date
Cédric Krier 6a05a2a8d5 Add searcher for currency on account move line 2023-02-15 19:53:37 +01:00
Cédric Krier dc7ab1b9f5 Do not fail to set button state if there is no record
The readonly attribute of record must only be used if there is actually a
record.

Closes #12189
2023-04-05 18:33:38 +02:00
Cédric Krier 6c1f09e551 Do not always enforce access on resource selection
When the reference field is validated (without check access), it should not
fail for SelectionValidationError if the user has no access to the resource.

Closes #12178
2023-04-03 10:54:50 +02:00
Nicolas Évrard 4301c56033 Drop default on id column of history tables
The migration introduced in baa87cf1a343 would fail because previous migration
would have wrongly set a default value in id column of history tables

Closes #12186
2023-04-05 19:36:27 +02:00
Nicolas Évrard 23304fc2e0 Handle string value set from domain inversion in MultiSelection fields
Closes #12181
2023-04-03 17:02:51 +02:00
Cédric Krier dc979ed50b Hide pay button on invoice if there is no payment method
Closes #12160
2023-03-24 13:21:42 +01:00
Cédric Krier 6e5c14f47e Add all documentation files on the index 2023-03-30 18:59:23 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 43b1d28326 Return rec_name for on_change_with of xxx2One and Reference
Closes #9638
2023-03-26 00:29:14 +01:00
Cédric Krier 4d6b36e711 Support return instances for Function getter and on_change_with
Closes #9640
2023-03-25 01:27:19 +01:00
Cédric Krier 62b33b5e3d Do not retrieve multivalue model for product template function
Since f80dceebed73 the cost price method is retrieved using the multivalue API
and since 11921ff82223 get_multivalue on product calls the template method.
2023-04-03 01:36:57 +02:00
Cédric Krier 40cc20121b Test on forecast record name fails after 31 March 2023
The test was added with 3b15c1378292 but as there is a computed active field
on forecast based on the "to date", the search by record name does not find
any active record.
2023-04-03 01:17:03 +02:00
Cédric Krier 9de4a7627e Rename label of payment amount to "Amount to Pay"
This is more explicit for the user because "Payment Amount" sounds like the
total of payments.
2023-03-24 12:28:31 +01:00
Cédric Krier 2ddb835bb1 Show payment amount and payments on account move line form
It is useful to understand how payment amount is computed.
2023-03-24 12:27:09 +01:00
Cédric Krier 9ad95c58ed Log modification of sale and purchase header via wizard 2023-02-08 19:05:00 +01:00
Cédric Krier ea62dea8da Log transition of invoice and shipment states of sale and purchase 2023-02-08 19:04:42 +01:00
Cédric Krier 17bbce3919 Log events for ModelStorage
It logs by default:
 - the write and delete done directly by the users
 - the execution of a button
 - the execution of wizard state that has modified the database
 - the workflow transition to a new state
2023-02-08 19:03:29 +01:00
Cédric Krier 68fdcb3f90 Add option to disable thread in tryton
As shown in #11767 on some platform the Python threading does not work well
with Gtk. So it is good to have the option to disable it at the cost of less
performance.
2023-01-26 18:31:45 +01:00
Cédric Krier 06ea8b0fba Use threading module instead of low level _thread in tryton 2023-01-26 17:57:42 +01:00
Cédric Krier c4bf6ccc11 Add quality module
Closes #7600
2023-03-12 22:24:45 +01:00
Cédric Krier e6383f0804 Ensure clearing account is from the same company as the payment journal
Closes #12159
2023-03-24 12:33:54 +01:00
Cédric Krier 4e26c991c7 Do not remove related_to from statement line when changing the amount
Closes #12176
2023-04-01 14:17:25 +02:00
Nicolas Évrard 5179e6cd40 Insert multiple rows at once
Closes #12106
2023-03-02 22:43:30 +01:00
Nicolas Évrard e18d604aa8 Use IDENTITY column for table id columns 2023-03-13 17:59:29 +01:00
Nicolas Évrard eef0c3d870 Do not shadow previously defined table handler 2023-03-24 18:07:29 +01:00
Nicolas Évrard 37f2ed9e84 Update definitions of constraints only when they changed
Closes #12136
2023-03-13 17:58:27 +01:00
Nicolas Évrard 09dbef446e Do not pass class to __table_handler__ classmethod 2023-03-13 17:56:41 +01:00
Nicolas Évrard d945809d35 Update all table definitions or only those specified in arguments
Closes #12136
2023-03-13 17:55:28 +01:00
Cédric Krier 2808d7dfc2 Fix languages variable name typo in emails 2023-03-27 16:11:19 +02:00
Cédric Krier c689590c8e Clear password hash read even if there is no cache
This was introduced by 2c557f1b4882
2023-04-01 00:18:01 +02:00
Cédric Krier f40cea7507 Do not fails to clear password from cache if there is no cache
This was introduced in 7b5157206d32

Closes #12165
2023-03-30 22:36:18 +02:00
Cédric Krier 1b6644a9a5 Split line also when amount to pay of invoice is zero
Closes #7707
2023-02-21 13:53:43 +01:00
Cédric Krier d62a64e186 Allow statement line with amount of zero 2023-02-21 12:37:07 +01:00
Cédric Krier 810780a789 Remove purchasable constraint on product when quantity is negative
Closes #9057
2023-03-23 17:37:34 +01:00
Cédric Krier e0a6aff42b Remove salable constraint on product when quantity is negative
Closes #9057
2023-03-23 17:37:17 +01:00
Cédric Krier 1aa9226401 Publish convert_from method
Closes #9007
2023-03-23 00:33:22 +01:00
Cédric Krier c48e7b36c6 Add reconcile and unreconcile from general ledger lines
Closes #7360
2023-03-13 23:52:18 +01:00
Cédric Krier 9c85f825f9 Add and remove empty lines in scenario 2023-03-13 23:52:02 +01:00
Cédric Krier 0c4bc6752a Add check for README.rst file
Closes #12111
2023-03-15 15:29:57 +01:00
Cédric Krier b719d8aed1 Add rstcheck 2023-03-15 16:33:19 +01:00
Cédric Krier ac4d4a7fbb Use multivalue API to access product multivalue fields
Closes #7474
2023-03-19 19:57:30 +01:00
Cédric Krier 5c7648a6e1 Return multivalue from template when field is not defined on product
Closes #7474
2023-03-19 19:56:33 +01:00
Cédric Krier 276cf8277b Disable button and action when screen and records are readonly 2023-03-19 01:44:45 +01:00
Cédric Krier bb0445d52d Set record as readonly when group is readonly 2023-03-19 01:44:05 +01:00
Cédric Krier 0bff126745 Disable new button when record is modified
To simplify the management of the state of button, activate_save is merged
with set_buttons_sensitive.

Closes #8053
2023-03-19 01:20:45 +01:00
Cédric Krier df56af6cde Set analytic lines on account move from asset update
Closes #12131
2023-03-18 00:47:46 +01:00
Cédric Krier e20b7a15ce Use instances in skip sets instead of id 2023-03-16 13:31:20 +01:00
Cédric Krier 2106797f73 Do not consider as valid mandate linked to an inactive account number
Closes #8065
2023-03-14 00:16:54 +01:00
Cédric Krier 8c586dc21f Deactivate numbers when bank account is deactivated 2023-03-14 00:15:47 +01:00
Cédric Krier 0f85e6d97d Use classmethod to compute state of module dependency 2023-03-16 10:02:15 +01:00