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
Cédric Krier
83f516f4fe
Retry pulling from the queue when DatabaseOperationalError is raised
...
The Queue.pull method can raise such exception even with an autocommit
transaction because the update query can be in conflict with another same
update query. This is because we use repeatable isolation level.
Closes #11937
2022-12-23 19:47:47 +01:00
Cédric Krier
2da4311287
Add some randomness to avoid concurrent pulling of new tasks
...
This prevents multiple workers to pull the same new task at the same time which
can create concurrency conflict.
Closes #11938
2022-12-23 19:44:09 +01:00
Cédric Krier
f9be31007f
Raise error message with record name and field in check_xml_record
...
Closes #11867
2022-12-26 13:18:22 +01:00
Cédric Krier
1739d5ede3
Remove double definition of __rpc__ for ir.session
...
The second __rpc__ was introduced in 275f29e2379d.
2022-12-28 15:06:45 +01:00
Cédric Krier
4959a655eb
Do not allow to activate tests module in configuration wizard
...
Closes #11878
2022-12-26 22:37:07 +01:00
Cédric Krier
98cbb23f58
Improve setup.py
...
get_required_version does not need to use .dev0 suffix anymore.
The download URL must be empty for development version.
Source Code must point to Heptapod repository.
Foundation email is used as author email.
2022-12-24 13:45:10 +01:00
Cédric Krier
cdd255a736
Avoid concurrency failure in cache test with channel
...
We need to ensure that the listener has finished to clear the cache before
resume the main thread execution.
Closes #11950
2022-12-23 23:57:17 +01:00
Sergi Almacellas Abellana
06beb3f188
Do not check read access when copying records
...
Closes #11949
2022-12-19 14:38:29 +01:00
Nicolas Évrard
37ebcfc633
Use left part of domain leaf in unique_value return value
...
The left part must be returned because when the value is unique we also use the
name of field for further checks
Closes #11952
2022-12-20 13:37:06 +01:00
Cédric Krier
c35e1ad98d
Use modulo on minor version to set latest series for documentation
2022-12-20 12:43:56 +01:00
Cédric Krier
5d3e4a39f2
Prepare migration to monorepo
2022-12-16 23:16:08 +01:00
Cédric Krier
cc8faa6699
Prepare migration to monorepo
2022-12-16 14:43:04 +01:00
Cédric Krier
2755687c07
Reset timeout loop of worker on each iteration
...
If there was a next task planned very soon, this should not become the default
timeout for future loop.
issue11913
review415971003
2022-12-08 13:34:01 +01:00
Cédric Krier
a058316e41
Allow empty timedelta
...
issue11869
2022-11-24 23:04:58 +01:00