Commit Graph
584 Commits
Author SHA1 Message Date
Cédric Krier 0deea1cace Update sendmail tests for SSL context
issue11564
(grafted from f2213e8ce5b209e35d849f46387917d252b4a435)

--HG--
branch : 6.0
2022-06-21 10:57:08 +02:00
Cédric Krier 48515fd026 Ignore invalid Reference field when reading related fields
issue11484
review449081003
(grafted from c0b209d2dcd7462aefdecefb1cfb06a18759f030)

--HG--
branch : 6.0
2022-05-19 22:02:33 +02:00
Cédric Krier 861f19f666 Negate the origin expression of Many2Many with 'not where' operator
issue11425
review403401002
(grafted from 9528c360ac5afd830b0be6260c0b089a4011715d)

--HG--
branch : 6.0
2022-04-27 17:51:52 +02:00
Cédric Krier 842f30cf59 Escape wildcard in tree separator for name domain
issue11321
review356281002
(grafted from 8b1644ea12fad5b20ebd52a6641bd09570e0631c)

--HG--
branch : 6.0
2022-04-16 11:25:38 +02:00
Cédric Krier f69b23d9fc Always use a Response wrapper when using testing client
This normalize the behavior through different versions of werkzeug.

issue11353
review385001002
(grafted from 171cdfb43730f5bcafca95149016366c794c7850)

--HG--
branch : 6.0
2022-04-22 18:32:25 +02:00
Nicolas Évrard a7e39de86a Add compatibility with Werkzeug 2.1.0
issue11353
review356241003
(grafted from 6355790727873d028d833d6126a934e593114a67)

--HG--
branch : 6.0
2022-03-31 13:43:36 +02:00
Cédric Krier 9b30972a82 Manage None as value of PYSON In
issue11280
review393771002
(grafted from 754d4193dcd9f999e9a3d302c935022e8b83ab7b)

--HG--
branch : 6.0
2022-03-06 18:02:00 +01:00
Cédric Krier dfe37be952 Avoid concurrency failure in cache with channel test
We need to ensure that the listener is running on the return of the transaction
start otherwise notification can be missed.
We must also just from time to time check that the listener is still the
current listener.
And finally we can not wait an arbitrary time for cache sync, instead we must
rely on the _clean_last being reset with the sync happens.

issue9413
review364831002
(grafted from a32b84d9664917df3274663c06ab57fd5a7789ef)

--HG--
branch : 6.0
2022-02-14 23:12:00 +01:00
Cédric Krier 78d3d5617a Check read access on parent field of child/parent operators
The 4th element of the clause is the parent field for the child_of/parent_of
operators, so it must be used to check access as related field.
Also we must remove the 4th element when checking related domain.

issue11115
review391371002
(grafted from 70e7eb839a66bac3b1eaf1f707cf111067c317be)

--HG--
branch : 6.0
2022-01-11 23:07:45 +01:00
Cédric Krier 1f45fbb20a Use first the dotted name variable in the PYSON context
issue11109
review383991002
(grafted from 4f3207199ad9a1b423decca2147b4cb42d4ae66e)

--HG--
branch : 6.0
2022-01-11 23:03:06 +01:00
Cédric Krier aff8e4ed16 Evaluate invalid domain if there are many fields
We must find the field that is invalid instead of using the first one with a
domain constraint.

issue10418
review360371002
(grafted from b64005c6aaa91dbb07b06b1269f35be937747cf0)

--HG--
branch : 6.0
2021-10-30 02:20:23 +02:00
Cédric Krier 8070360fd8 Use biginteger for integer overflowing XML-RPC integer dumper
issue10732
review363891002
(grafted from 63c5ffec46df34be952103f289bd51b35480112f)

--HG--
branch : 6.0
2021-09-19 00:04:57 +02:00
Cédric Krier 870ab73a9f Set search_similarity when testing search by similarity
issue10710
(grafted from 1944ebf20a76f6c13257f5bec59d39e3310b9b54)

--HG--
branch : 6.0
2021-09-10 19:54:44 +02:00
Cédric Krier 2a17ca0ac8 Clear transaction cache in test_read_last_translation
issue10630
(grafted from 11744680f56fdbe82440ec4af5591341e73d5613)

--HG--
branch : 6.0
2021-08-18 13:07:55 +02:00
Cédric Krier 6f966ac8c9 Use subquery when searching for similarity on translated Char
issue10624
review363621002
(grafted from 9cc55cca68b0fa69631ae93b0a63a229a5e83375)

--HG--
branch : 6.0
2021-08-12 18:38:15 +02:00
Cédric Krier f3d62ef9e3 Make ImmutableDict dumpable by protocols
issue10599
review349001002
(grafted from 9826b7711f94fd9ae4b67b625f9b8b1c63f85cca)

--HG--
branch : 6.0
2021-07-22 19:06:15 +02:00
Nicolas Évrard c62f34fb3a Add support for SQL expression to sqlite's TRIM
issue10510
review352121003
(grafted from 3b899a065dce3c18d07ab1829bfb943f576ba9e9)

--HG--
branch : 6.0
2021-06-16 14:55:46 +02:00
Cédric Krier 7a265df611 Import unittest.mock before using it
issue10422
(grafted from de104ed0f6a829435c2aa93b3652707169f46404)

--HG--
branch : 6.0
2021-05-15 17:53:23 +02:00
Cédric Krier 48e240c454 Use start and stop methods of patch in scenario
This ensure that the modification on the object are removed at the end of the
scenario.

issue10422
review332891002
(grafted from 3ecfbf3586e429a78b9e40eb3d9702944e27a316)

--HG--
branch : 6.0
2021-05-15 09:22:28 +02:00
Cédric Krier 1cb4866607 Skip avatar test if PIL is not installed
(grafted from 4d216b768a9c802ddd8c285c278dc9c2df50112c)

--HG--
branch : 6.0
2021-05-05 18:09:08 +02:00
Cédric Krier 92d98b36ff Translate LazyString of ir.model and ir.model.field
issue10326
review321041002
2021-04-25 18:19:29 +02:00
Cédric Krier e4015d7bf3 Include records without link with negative search on xxx2many
issue10178
review345981002
2021-04-25 17:56:39 +02:00
Cédric Krier 42cb4a0f53 Set name clause on join condition instead of subquery
The name is a column from a table that is not available in the subquery.

issue10257
review346001004
2021-04-24 19:27:07 +02:00
Albert Cervera i Areny f56915879f Fix typo in test_depend_exists message
issue10305
review342151002
2021-04-23 20:14:57 +02:00
Cédric Krier d7b3e7a2ef Add missing ending quote to missing method message 2021-04-19 18:01:19 +02:00
Nicolas Évrard 7417261c8d Use specific search domain for reference field searches
issue9997
review324781002
2021-04-12 20:54:03 +02:00
Nicolas Évrard a426d9f398 Use immutable datastructures for Dict and MultiSelection fields
In case a Dict field is sent during an on_change, modification of its value
won't be detected because a shallow copy will keep its reference in the
pseudo-record

issue10105
review347541002
2021-04-12 19:39:25 +02:00
Cédric Krier 1788bcb544 Check rule only if _check_access is set
issue4080
review343891009
2021-04-10 23:44:39 +02:00
Cédric Krier 80ac9eb0be Add support for avatar
issue10085
review343561002
2021-03-28 19:20:37 +02:00
Cédric Krier 45d406e270 Add full text and similarity search
issue10023
review320601007
2021-03-21 16:21:05 +01:00
Cédric Krier d4e228a29f Do not return None when evaluating domain with in operator
When the operator is 'in' and the value contains None, Field._domain_add_null
adds an equal operator against NULL. So this must be managed like the '='
operator.

issue9906
review332201005
2021-03-20 12:33:09 +01:00
Cédric Krier 3aec470d5b Store directly sequence type to sequence
issue10122
review351381002
2021-03-11 23:00:10 +01:00
Cédric Krier 2925c971b5 Add context field of parent to on_change calls
Those fields are required to instantiate the parent fields with the proper
context.

issue10182
review359301002
2021-03-11 19:20:32 +01:00
Cédric Krier 048489ab4a Test wizard's StateView is of type 'form'
issue10143
review335701004
2021-03-11 19:16:41 +01:00
Cédric Krier e6dda69e06 Allow sending email with record's attachments
issue10135
review345471002
2021-03-11 19:14:07 +01:00
Cédric Krier 3e19c4c5eb Add parent to group to inherit accesses
issue10032
review320661002
2021-03-07 12:43:09 +01:00
Cédric Krier 04a0aea2ad Add __access__ to Model
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Nicolas Évrard eb78acc47b Call Function.get by bunch of cache size
issue9927
review324701002
2021-02-23 18:50:27 +01:00
Nicolas Évrard e53724a775 Protect trusted devices against brute force attack
issue9386
review321511002
2021-02-21 16:23:11 +01:00
Cédric Krier 3592175067 Use column to order when translation value is empty
issue10094
review331871002
2021-02-20 00:58:39 +01:00
Cédric Krier fffb8efb5a Ensure to join with only one translation row
If there are multiple translations for the same record, the join will generate
result with multiple times the same id on ModelSQL.search.
As DISTINCT ON is not always supported, we must also ensure that duplicated
translations are all updated.

issue10061
review351261002
2021-02-20 00:48:50 +01:00
David Harper 6fec6444fc Add trigonometric functions to sqlite backend
issue9996
review333731002
2021-02-06 10:47:06 +00:00
Cédric Krier c6fc31ecee Test copy translation
issue9866
review353091002
2021-01-18 23:20:40 +01:00
Maxime Richez d64ae06e19 Add summary to line list
A function field summary is added which takes the first line of description
field. This is useful to identify line without product (only with description)
in the list.

issue9695
review292431002
2020-12-25 17:14:57 +01:00
Cédric Krier b16604550c Skip access check on ModelStorage instances
There is no need to enforce access right on instances because only internal
code can use them and the design is to only check on the external calls.

issue7765
review322581002
2020-12-18 00:09:03 +01:00
Cédric Krier e18501c644 Support other methods for button_change decorator
issue9871
review314871002
2020-12-05 12:09:27 +01:00
Cédric Krier 1618881692 Allow copying Python instances of Model
issue9869
review337071002
2020-12-05 11:58:41 +01:00
Cédric Krier 7822844f52 Store listener threads per process
This ensure that if the process is forked, the child process will start new
listeners for the Cache and the Bus.

issue9832
review329601002
2020-11-27 22:19:56 +01:00
Cédric Krier 1fd888b83e Test depends of depends are included
issue9828
review292751003
2020-11-23 23:35:03 +01:00
Cédric Krier 44682fb9cd Unify PYSON string format between all clients
issue9723
review328481002
2020-11-15 18:50:47 +01:00