Cédric Krier
251051ad61
Do not alter argument values of with_transaction decorator
...
Closes #12108
2023-02-26 00:20:09 +01:00
Cédric Krier
5cc5a8f672
Update tox.ini to set py311 and remove py37
2023-03-03 00:17:18 +01:00
Cédric Krier
e47f108844
Test page name attribute is an existing field
2023-02-12 12:02:13 +01:00
Cédric Krier
45dd6f213c
Support SMALLINT and REAL as backend types
2023-02-21 00:25:38 +01:00
Cédric Krier
f912ec5b45
Remove BigInteger field
...
Closes #6792
2023-02-21 00:25:05 +01:00
Nicolas Évrard
039761e061
Remove support for Python 3.7
2023-01-29 20:36:51 +01:00
Nicolas Évrard
777ee10f27
Add support for Python 3.11
2023-01-27 11:02:47 +01:00
Cédric Krier
4e3b817b81
Require at least version 0.12 of werkzeug
...
Closes #12021
2023-02-19 11:23:50 +01:00
Cédric Krier
609583221b
Retry on database operation error when locking table on transaction start
2023-02-19 22:12:41 +01:00
Cédric Krier
96c0f1ec4d
Rollback and clear tasks on database error in transaction of tests
2023-02-19 22:13:35 +01:00
Cédric Krier
cb348ca880
Clear tasks when transaction is rollback
...
The tasks records are removed on rollback so there is no need to try to run
them.
2023-02-19 20:58:01 +01:00
Cédric Krier
8dc8454449
Manage transaction error in trytond-admin
...
Since c8771e45b861 TransactionError can be raised and is raised when creating
the ir.configuration singleton (1f462acb3b55).
Close #12087
2023-02-19 01:17:44 +01:00
Cédric Krier
1c56b9190a
Test domain validation for xxx2many fields
2023-02-19 12:15:45 +01:00
Cédric Krier
d5d758b59e
Format value of xxx2many field with record names in Model.__names__
2023-02-19 13:25:27 +01:00
Cédric Krier
30d2bcb2a8
Find invalid records of xxx2Many field using intersection
...
For xxx2Many field, the contain test is not working correctly because the
field value is a tuple of records which is never in the list of invalid
relations.
Closes #12099
2023-02-17 12:56:18 +01:00
Nicolas Évrard
d6b8e9671b
Set the fallback application name when connecting to postgres
...
Closes #12074
2023-02-20 23:22:39 +01:00
Cédric Krier
de8d5477a0
Do not use One2Many with filter to get MultiValue records
...
The filter may prevent to find the right value.
Closes #12078
2023-02-10 16:10:08 +01:00
Cédric Krier
b55fe71383
Set default attributes on Transaction __new__ method
...
Closes #5617
2023-02-05 00:36:58 +01:00
Nicolas Évrard
c17cf5243f
Keep using _database_cache if the specific cache hasn't been reset
...
Closes #12079
2023-02-14 13:28:36 +01:00
Cédric Krier
7843e47389
Add scroll time for calendar view
2023-01-28 10:42:58 +01:00
Cédric Krier
fd3ea318a8
Allow cache size to be configured
...
Closes #11383
2023-01-14 20:11:32 +01:00
Cédric Krier
40db6c18a6
Test message of DomainValidationError
2023-02-07 16:44:30 +01:00
Cédric Krier
222b39c54f
Fill DomainValidationError message using an invalid record
...
The invalid relations are the invalid records only if Target is the class.
2023-02-07 16:44:14 +01:00
Cédric Krier
eeb0bc72d4
Apply sphinx-lint to documentation
2023-02-04 21:02:37 +01:00
Nicolas Évrard
967a41f467
Add global and local set of ignored context keys
...
Closes #11234
2023-02-06 18:40:00 +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
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
b48e4966d5
Add functions and attribute to handle check access and active records
...
Closes #11863
2022-12-30 13:56:10 +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
José Antonio Díaz Miralles
2668ff013a
Do not write creation values in ModelSingleton
2023-02-03 20:08:26 +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
9ae4f0e80c
Copy original state of wizard to avoid side effect
...
Closes #4948
2023-01-22 01:41:52 +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
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
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
8ee974fb19
Add prefix and suffix as optional column of sequence list
...
Closes #5424
2023-01-22 16:50:38 +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
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
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
7fba550c13
Update cookiecutter url in module tutorial
2023-01-23 12:57:53 +01:00
Cédric Krier
e072f4bc9e
Fix source clause of empty translation source introduced by 4ec2377b84e5
2023-01-25 09:41:24 +01:00
Cédric Krier
5d82f65fd8
Add generic test for field function searcher and domain field method
2023-01-11 12:29:25 +01:00
Cédric Krier
25b83527a0
Do not try to fuzzy update empty source of translation
...
Closes #11881
2022-12-26 22:28:04 +01:00
Cédric Krier
8e51294514
Rewrite read/write error messages to be independent on time
...
id may not exist not only because it was deleted. They may never exist or the
action happen in the past.
Closes #3825
2023-01-21 23:52:55 +01:00
Cédric Krier
1ca173894b
Use standard functools.wraps instead of wrapt
2023-01-14 11:43:51 +01:00
Cédric Krier
389ad47590
Rename ModelStorage.count into ModelStorage.estimated_count
...
count is too common name for a standard method like #12016 reveals.
2023-01-17 23:01:08 +01:00