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
Cédric Krier
0b67a61607
Test if count is callable before using it
...
ModelStorage.count has been added in 6.2 but there are existing Model that has
field with this name.
Closes #12016
2023-01-17 22:54:01 +01:00
Cédric Krier
588bd00f93
Define url_size on image of form
...
Closes #12007
2023-01-15 15:27:54 +01:00
Cédric Krier
6f8a705fbb
Set border to avatar images
...
We use circle for individuals and rounded for group like companies.
2023-01-15 15:16:14 +01:00
Hodei Navarro
8afe6df925
Add border type to images
...
Closes #11458
2023-01-03 11:17:34 +01:00
Cédric Krier
7ed348f085
Call transaction rollback instead of rollbacked
...
Closes #12010
2023-01-16 11:40:30 +01:00
Cédric Krier
dd222215eb
Lock table on transaction start
...
When trying to lock a table, we check if it was locked at the start of the
transaction otherwise we raise a TransactionError so the all transaction is
restarted over with the table added to the table to lock.
This ensures when a table is locked that we always read the last committed
values.
Closes #10870
2022-12-26 15:05:56 +01:00
Cédric Krier
5188a2ee51
Add error message to Pool asserts
2023-01-03 18:50:28 +01:00
Cédric Krier
bba775dadd
Replace model access by __access__ for trigger
2023-01-08 20:43:26 +01:00
Cédric Krier
a4cdbeb11f
Replace model access by __access__ for module
2023-01-08 20:41:51 +01:00
Cédric Krier
25c7937ec2
Replace model access by __access__ for rule
2023-01-08 20:40:59 +01:00
Cédric Krier
a50ef07d61
Replace model access by __access__ for model
2023-01-08 20:39:12 +01:00
Cédric Krier
4457e05282
Replace model access by __access__ for actions
2023-01-08 20:35:28 +01:00
Cédric Krier
ce81c8618c
Update translation from default language
...
But keep 'en' as internal language when source comes from the code.
Closes #11882
2022-12-26 22:42:15 +01:00
Nicolas Évrard
51414701ae
Use EXISTS for search on O2M with many records
...
Closes #11934
2022-12-25 18:13:49 +01:00
Nicolas Évrard
4f5c0ae3fa
Remove target_search on Many2One
2022-12-22 02:43:16 +01:00
Nicolas Évrard
3632c51c18
Manage domain on id in single value list as unique
...
Closes #11953
2023-01-02 11:49:34 +01:00
Nicolas Évrard
8d3d4c79ff
Do not validate domain on empty fields unless they're required
2022-12-21 22:29:24 +01:00
Cédric Krier
41dc5a6624
Add domain on view of action window view based on action window model
...
Closes #1565
2023-01-08 20:29:30 +01:00
Cédric Krier
4cd5308ef3
Use wikipedia link for SQL 92
2023-01-11 13:32:19 +01:00
Cédric Krier
9dea49488c
Do not use class value of Reference field if it is not a ModelStorage
...
When Reference fields store partial reference, the value is the stored string
instead of an instance. So the class of the value is then str which can not be
used for domain validation.
Closes #11954
2023-01-07 20:43:22 +01:00
Cédric Krier
2b786d8c44
Add coverage reports
2023-01-08 11:18:56 +01:00
Cédric Krier
62e8201d5a
Add unit test reports
2023-01-08 01:55:20 +01:00
Cédric Krier
5f8b891f62
Increase verbosity of tox
2022-12-28 00:26:31 +01:00
Nicolas Évrard
19f8faa28b
Move save of M2O from _save_values to save()
...
Closes #11381
2023-01-06 17:19:45 +01:00
Cédric Krier
67bf3bb30d
Do not join with target table of Many2One for only id clause
...
Also since 1b31be06c525 there is no need to add an active clause as the active
test is disabled by the decorator.
Closes #11841
2022-12-30 14:02:36 +01:00
Cédric Krier
4370ef04c0
Document how to trigger the save of container fields
...
Closes #11933
2022-12-24 10:49:14 +01:00
Cédric Krier
4809f55cae
Improve report documentation topic
...
Out dated information are removed, links to demo server are added and a new
section customize existing report from client is added.
Closes #11925
2022-12-25 11:12:14 +01:00
Cédric Krier
2327f6489c
Remove direct dependency to Werkzeug
...
Closes #11407
2022-12-31 00:05:40 +01:00
Cédric Krier
72699d6880
Use Selection field for type of ir.action and add domain
...
Closes #1564
2023-01-01 13:25:17 +01:00
Cédric Krier
f72502b1ad
Clear tasks at the end of test transaction
...
The tasks list is global per thread. As the tests are run in the same thread,
we must clear remaining tasks that are not run by the test.
Closes #11978
2022-12-31 20:19:20 +01:00