Commit Graph
57207 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 8cd6e60a52 Add search context fields to sale line product depends
They should be added explicity because they are not included in display_depends
nor edition_depends

Closes #12407
2023-07-19 11:46:04 +02:00
Sergi Almacellas Abellana c5bafdb2ed Test searching on move's purchase and sale from kit 2023-08-02 20:37:15 +02:00
Cédric Krier 91fb1e7c24 Use OR-ed domain when composing clauses from exclusive join
When a searcher of a Function field compose a domain using mutually exclusive
joins, the boolean operator must always be OR because only one clause is not
NULL.

Closes #12291
2023-08-02 20:35:13 +02:00
Cédric Krier 855a0aaeab Update origin of outgoing moves for internal shipment
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.

Closes #12272
2023-08-25 18:08:17 +02:00
Maxime Richez f082344b66 Update origin of inventory moves for customer shipment
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.

Closes #12272
2023-08-25 16:34:06 +02:00
Cédric Krier b32eeae46a Store synchronized moves of customer shipment even when quantity is not updated
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.

Closes #12503
2023-08-18 14:47:39 +02:00
Cédric Krier e2676bcd85 Discard disconnected connection from the pool
When a connection in the pool is disconnected, it stays in the pool and it may
still be served.
Using such connection raise an OperationalError and so the request is retried
but before that the connection is put back to the pool. So we may get it back
again.
It is not possible to distinct between an OperationalError due to a
disconnection or due to a isolation error for example.
So with the current design of Transaction API, an OperationalError always put
back the connection to the pool.
This main that we can only ensure that the connections served are still
connected by executing a simple query. And close connections that are failing.

Closes #12452
2023-08-04 15:59:35 +02:00
Cédric Krier d6a92dc606 Add default price list line to test sale extra
Since d632eee3c4c3 the price list returns None as unit price if no matching
line is found.

Closes #12505
2023-08-21 09:57:28 +02:00
Cédric Krier 2d8cc458fd Convert element joined domains into domain when searching for OR-ed domain
The content of joined domains can be a single clause, so it must be converted
into a domain before calling search_domain.

Closes #12460
2023-08-10 13:55:00 +02:00
Adrià Tarroja Caubet 4fffd30011 Fix pallet typo on docs
Closes #12520
2023-08-24 13:04:02 +02:00
Cédric Krier d706ab7ffa Support GIN index with btree_gin PostgreSQL extension
Closes #12480
2023-08-16 22:03:59 +02:00
Cédric Krier f58582b636 Include Similarity in the indexed expression of BTREE
The Similarity expression increase the score and are supported in BTREE.

Closes #12479
2023-08-16 21:53:32 +02:00
Cédric Krier 318950e03b Filter expressions for BTREE and GIN indexes
IndexMixin is calling the method _get_indexed_expressions instead of
_get_expressions.

Closes #12478
2023-08-16 21:50:05 +02:00
Cédric Krier ac86331140 Use only stock move with cost price for product cost price history
The cost price on stock move is only required by validation so we can not
ensure over time that all the stock moves selected have a cost price.

Closes #12468
2023-08-12 20:10:06 +02:00
EdbO 0e203ba32a Add a warning in documentation for desktop client when switching to SSL/TLS
Make it clear that the host must not exists in the `know_hosts` file and
that the right CA certificate must be in `ca_certs`

Closes #12446
2023-08-03 11:43:21 +02:00
Cédric Krier 9cc5d449bb Add missing new keyword when instantiate DomainInversion
The instantiation was added by changeset 47f8e9433d2d
2023-08-16 09:44:27 +02:00
Cédric Krier de1386328b Update style for flake8 6.1.0
Closes #12475
2023-08-16 11:49:30 +02:00
Cédric Krier 0fe7228d58 Try to post only clearing move of journals from the contextual company
Closes #12453
2023-08-05 00:27:11 +02:00
Cédric Krier 69c88b6a8a Do not apply unaccent when searching on number fields
Closes #12435
2023-08-03 15:54:33 +02:00
Cédric Krier 9c2a9623e4 Delete on cascade account receivable rules
When company, account or journal are deleted, the rules using them should not
prevent the deletion and should be deleted as well.
2023-08-07 11:19:24 +02:00
Nicolas Évrard 71e9eb854e Reset search offset when domain has changed 2023-08-14 22:33:15 +02:00
Nicolas Évrard 82ae036d3a Add a canonicalize function for domains 2023-08-14 22:32:14 +02:00
Nicolas Évrard 99211dd03d Activate EcmaScript 6 compatibility for tests 2023-06-15 22:30:30 +02:00
Cédric Krier bf9735dd5a Remove useless state variable when initialize database 2023-08-14 22:02:09 +02:00
Nicolas Évrard f8de1d23c6 Replace NEXTVAL call by IDENTITY for database initialisation 2023-08-14 21:26:59 +02:00
Cédric Krier ad0b2411c8 Order number fields first by length
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Cédric Krier 6daca5a307 Rename stock package code to number 2023-08-03 15:58:57 +02:00
Cédric Krier 7502b9d26d Merge account dunning email logs into email archives
Closes #12214
2023-07-28 00:54:49 +02:00
Cédric Krier 4d3b90faea Add missing ending dot in project invoice error message 2023-08-02 22:42:26 +02:00
Nicolas Évrard fe44d98d76 Move sleep loop introduced in a32b84d96649 to prevent deadlock to tests
In this changeset we fix an issue with testing.

When using the listener for cache invalidation it results into the database
lock used by the pool that is acquired twice. Once when calling Pool.init ;
once when the transaction is started which calls Cache.sync which in turn calls
Pool.refresh and finaly Pool.stop. It tries to acquire again the re-entrant
lock (but it cannot because it's another thread).

Closes #12457
2023-08-08 15:33:33 +02:00
David Harper f52d70e5ba Add res module documentation
Closes #9793
2023-08-13 17:08:48 +02:00
Cédric Krier cc3b71bae4 Replace domain on view type by validation on view tree optional
The validation of type must be recursive up to the first inherited view which
cannot be expressed with a domain.

Closes #12341
2023-07-30 10:45:03 +02:00
Cédric Krier 2b96ba7428 Add access rights to stock lots by locations
Closes #12348
2023-07-29 23:25:26 +02:00
Cédric Krier b7e30235fd Round and convert numeric value after applying factor
Closes #12381
2023-07-29 16:21:33 +02:00
Cédric Krier 6f56a6ba8d Do not parse as integer null value 2023-07-29 16:20:30 +02:00
Cédric Krier 10d42631b0 Fix path for sphinx configuration in readthedocs configuration 2023-08-12 12:20:34 +02:00
Cédric Krier e5d264a7ee Add product_price_list_cache module 2023-08-12 09:06:26 +02:00
Cédric Krier 9dfcabf8c5 Update documentation of product_price_list_dates 2023-03-30 19:28:15 +02:00
Cédric Krier 5a23012694 Remove unit price to compute price list
Instead the value of unit price comes from the product and is defined on the
price list.
2023-03-30 19:11:27 +02:00
Cédric Krier 024a6bf0a3 Remove party to compute price list 2023-03-29 13:41:04 +02:00
Cédric Krier 8eb77eb3c5 Add a button to create shipment manually from sale
Closes #12412
2023-07-19 15:26:39 +02:00
Cédric Krier 6b4c649367 Add a button to create invoices manually from sale
#12412
2023-07-19 13:27:34 +02:00
Cédric Krier 3dac1d819d Add a button to create invoices manually from purchase
#12412
2023-07-19 11:26:33 +02:00
Cédric Krier f86cd2c6d4 Drop notification email log table after migration
And use the configured table name if set.

Closes #12438
2023-07-28 01:03:10 +02:00
Cédric Krier 14c0d66b11 Generate invoices and consumptions only for contextual company
Closes #12345
2023-07-24 23:51:00 +02:00
Cédric Krier d41cb4d14a Call the same search method in super call when extending for components
Closes #12434
2023-07-25 11:02:09 +02:00
Cédric Krier 301cb13dca Evaluate also parent shipment to make readonly dates and buttons of stock move
Closes #12404
2023-07-23 21:07:34 +02:00
Sergi Almacellas Abellana 1ae7c02f97 Use proper module for message when checking shipment cost for sale quotation
Closes #12458
2023-08-09 23:20:03 +02:00
Adrià Tarroja Caubet 83220a6076 Reuse cumulate per party from context as default value for general ledger line
Closes #12367
2023-07-05 16:32:56 +02:00
Cédric Krier a1118902e0 Skip promotion based on categories if line has no product
Closes #12351
2023-08-02 19:09:51 +02:00