Cédric Krier
1fcd308aa6
Use MatchMixin to get product bom
2024-09-07 11:20:52 +02:00
Cédric Krier
a4eb342cd7
Retry to get a connection when an OperationalError is raised
...
If there are no connection available in the pool, psycopg2 tries to create a
new connection but it may raise an OperationalError if the server close it.
Closes #13475
2024-08-26 09:33:58 +02:00
Cédric Krier
958090cc27
Search on location of inventory when searching the inventory location of lines
...
Closes #13464
2024-08-22 11:31:10 +02:00
Cédric Krier
3239549b99
Do not include cancelled moves in measurements
...
Closes #13439
2024-08-05 19:07:01 +02:00
Cédric Krier
ea4782565a
Store internal measurements for final states of shipments
...
This prevents the searcher to compute the sum for all the shipments with a
join to all the stock moves.
Closes #13438
2024-08-06 08:24:46 +02:00
Cédric Krier
05b5a79564
Support list as search operand on shipment measurements
...
Closes #13437
2024-08-05 18:53:34 +02:00
Nicolas Évrard
428825ac6a
Use JSONB to store MultiSelection field by default
...
Closes #11513
2024-09-02 11:25:49 +02:00
Nicolas Évrard
1fbcf70283
Apply the function field searcher transformation before doing any optimization
...
This allows to use the OR-to-UNION optimization if the searcher returns only
local columns.
2024-06-27 19:15:07 +02:00
Nicolas Évrard
02f054bd26
Check the return type of Function fields searchers
2024-06-28 15:38:46 +02:00
Nicolas Évrard
6512d36bd1
Rely on the tables dict to choose when to apply the OR-to-UNION optimization
...
The dict changes in size if non-local columns are used to order the search
results.
Closes #13346
2024-06-13 18:57:14 +02:00
Nicolas Évrard
a11522ffd6
Externalize the method to apply sorting on order tuples
2024-06-27 18:09:07 +02:00
Adrià Tarroja Caubet
ba02686320
Remove redundant product kit scenario testing duplicate
...
Closes #12880
2024-09-01 12:24:29 +02:00
Nicolas Évrard
fab9093188
Fill default values of record in exception in a single loop
2024-08-31 14:01:36 +02:00
Nicolas Évrard
5e3daac1b8
Do not override id as default values of failed read
...
Closes #13331
2024-08-31 12:19:20 +02:00
Nicolas Évrard
e2e520b280
Raise non processed exceptions when they occur during load of records
...
It is needed to not bypass catch_error decorator.
Closes #13332
2024-08-31 11:34:20 +02:00
Adrià Tarroja Caubet
c1f60725c5
Do not copy project works nor progresses when copying invoice line
...
Closes #13369
2024-08-30 23:57:05 +02:00
Sergi Almacellas Abellana
706bd182c7
Fix typo on web user invalid email error message
...
Closes #13405
2024-07-19 13:48:36 +02:00
Nicolas Évrard
53bb613564
Implement __deepcopy__ on ImmutableDict
...
Closes #13408
2024-07-19 19:04:01 +02:00
Cédric Krier
63c6eacc89
Retry JSON-RPC requests on Service Unavailable
...
Closes #13139
2024-08-07 16:07:18 +02:00
Cédric Krier
c3e4788a2b
Add timeout option to show processing label
2024-08-07 16:05:43 +02:00
Cédric Krier
f3c5f401a3
Search on customer id when searching by record name of Braintree customer
2024-08-22 18:41:43 +02:00
Cédric Krier
deb0eb5d78
Search on customer id when searching by record name of Stripe customer
2024-08-22 18:41:31 +02:00
Cédric Krier
c8464cd945
Add SQL constraint to ensure only one tax line without period
...
TaxLine.update_cash_basis relies on having only one line without period per
grouping key so it is safer to make it a SQL constraint.
2024-08-01 23:43:43 +02:00
Cédric Krier
ef5d8d53ac
Update tax cash only for invoices with payment lines modified
...
Closes #13433
2024-08-01 23:26:49 +02:00
Cédric Krier
2197eb153c
Set only the missing tax amount on the current period
...
The ratio is computed for all the existing periods with payments, so when
updating for a new period only the part that is not yet on a period should be
modified.
Closes #13433
2024-08-01 23:24:54 +02:00
Cédric Krier
112bfd25c4
Move tax rule pattern from stock move to invoice line
...
Since fea57ac2ca9d the taxes for consignment invoice lines are computed by the
invoice line and no more by the stock move.
Closes #13432
2024-08-01 16:04:41 +02:00
Cédric Krier
a2dfc4455b
Refine index definition
...
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier
234daa0f99
Add cardinality option to Index Usage
...
Closes #13426
2024-07-27 17:49:13 +02:00
Cédric Krier
084cd424ce
Use more accurate threshold between update or rebuild of MPTT
...
Closes #13422
2024-07-27 11:55:20 +02:00
Maxime Richez
4244ad305d
Use today as planned date for assigned move in stock moves by warehouse
...
Closes #13417
2024-07-23 16:19:09 +02:00
Cédric Krier
4b32fabdc7
Remove optional from company agent
...
The type string is supposed to be followed by the company name.
2024-08-06 17:38:10 +02:00
Cédric Krier
01574e6700
Add searcher to summary fields
...
Closes #13401
2024-07-18 10:12:04 +02:00
Cédric Krier
337dc832e0
Add package weight as shipping method criteria
...
Closes #13390
2024-07-04 18:25:59 +02:00
Cédric Krier
0f0fe9053c
Add warehouse as shipping method criteria for Sendcloud
...
The available methods may depend on the sender address which comes from the
warehouse.
Closes #13389
2024-07-04 17:10:42 +02:00
Cédric Krier
40732da51d
Do not set unit price for production input move in test scenario
...
Since 23a3a9ed13d7 the unit price must be empty when not required.
Closes #13453
2024-08-21 19:25:16 +02:00
Cédric Krier
684a4e7aa0
Use column name to load field when copying selected rows with not loaded fields
...
Closes #13443
2024-08-07 19:02:49 +02:00
Adrià Tarroja Caubet
2fce001bcd
Fallback to 0 when time series value is None
...
Closes #13373
2024-08-21 09:05:33 +02:00
Cédric Krier
f3188ab177
Do not copy button into clipboard
...
Closes #13442
2024-08-07 18:58:41 +02:00
Cédric Krier
bb533d1a94
Convert to string the action key when the type of x axis is date or datetime
...
Closes #13440
2024-08-07 17:25:45 +02:00
Cédric Krier
6f7109b317
Consider as stringable domain with empty clause
...
Closes #13414
2024-08-07 16:34:09 +02:00
Adrià Tarroja Caubet
78f0aae2e2
Use empty string for empty descriptions to construct grouping key
...
Closes #12952
2024-08-18 14:25:54 +02:00
Cédric Krier
d0c5188641
Enforce empty price on stock move when not required
...
Closes #13382
2024-07-19 13:14:58 +02:00
Cédric Krier
e84fec0f84
Close connection when listing or testing PostgreSQL databases
...
Closes #13441
2024-08-07 17:49:10 +02:00
Cédric Krier
be68d7ad69
Use a separate browse list to compute amounts from non cached states
...
The browse record list loops over the ids of the list to complete the read
batch. So move the record without cache at the end does not prevent to read
the lines of the first records with cache. A separate browse list must be used
for the records without cache to prevent to read lines from record with cache.
Closes #13396
2024-07-27 10:16:51 +02:00
Cédric Krier
48ad8ebb02
Add filtered One2Many fields on sale, purchase and invoice
...
This allows to create only instances for the lines of type line when only
those lines are needed.
This mainly avoid to compute amount for subtotal lines when accessing the
amount of instance of type line.
2024-06-22 16:50:48 +02:00
Cédric Krier
07f5e3faaa
Allow only sale and purchase lines of type line as origin of stock move
2024-06-22 16:51:52 +02:00
Cédric Krier
17476c5844
Return definition translations from the underlying field of Function field
...
Closes #13356
2024-06-21 18:49:51 +02:00
Cédric Krier
3d9852c008
Set product range index last for stock move
...
As product clause are reduced ids, they have less chance to be usable than the
date which is often a single value.
2024-06-19 13:23:57 +02:00
Cédric Krier
3ca4615b32
Add location and use product range in stock period cache index
...
The cache is always filtered by location and the product is often filtered
with reduced ids.
2024-06-19 12:44:33 +02:00
Cédric Krier
9a4051ab8c
Add company to the stock move indexes
...
Almost all the queries on stock move filter by company.
2024-06-18 20:33:41 +02:00