Commit Graph
1553 Commits
Author SHA1 Message Date
Cédric Krier 1fcd308aa6 Use MatchMixin to get product bom 2024-09-07 11:20:52 +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
Adrià Tarroja Caubet ba02686320 Remove redundant product kit scenario testing duplicate
Closes #12880
2024-09-01 12:24:29 +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
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
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
Adrià Tarroja Caubet 2fce001bcd Fallback to 0 when time series value is None
Closes #13373
2024-08-21 09:05:33 +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 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 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
Cédric Krier 6d219e96f3 Do not add period query to the union if there is no period
There is no cache record without period so there is no need to add the query
to the UNION.
2024-06-18 20:32:09 +02:00
Cédric Krier e00fd063c5 Reuse simple COALESCE expression to filter moves after stock period
The expression must be the same as the one in the indexes such that the
indexes can be used to directly filter out all the moves before the period.
This restores the original expression that was changed by e4431b79e409 for the
generic move_date. But by design there can not be any assigned move planned
before the closed period.
2024-06-18 20:29:31 +02:00
Cédric Krier 642c3cd8db Add United Kingdom Unique Taxpayer Reference identifier
Closes #11870
2024-07-18 17:01:15 +02:00
Cédric Krier fc8130e7c4 Raise a warning when submitting complaint for the same origin
Closes #13360
2024-06-25 16:57:02 +02:00
Cédric Krier b41ee38f1a Allow copying move from closed period
Closes #13361
2024-06-26 09:39:26 +02:00
Cédric Krier b1e1034db1 Update documentation of account statement CODA 2024-08-10 15:49:36 +02:00
Cédric Krier 683f94238f Update documentation of account invoice line standalone 2024-08-08 23:25:23 +02:00
Cédric Krier d40c0968ab Update documentation of account invoice secondary unit 2024-08-08 23:28:03 +02:00
Cédric Krier b4ba3202e7 Use moveable types from sale line for Shopify Inventory Item 2023-11-18 00:25:19 +01:00
Cédric Krier 4fd13555f4 Add movable field on sale and purchase line 2023-11-18 00:24:33 +01:00
Cédric Krier 0590d00404 Update documentation of account payment SEPA CFONB 2024-08-08 23:34:44 +02:00
Cédric KrierandDavid Harper 21776a54da Update documentation of account payment Braintree
Co-authored-by: David Harper <dave@libateq.org>
2024-08-08 23:32:38 +02:00
Cédric Krier a3d5c74c87 Update documentation of account invoice history 2024-07-29 23:40:44 +02:00
Cédric KrierandDavid Harper 358ee29fef Update documentation of account invoice correction
Co-authored-by: David Harper <dave@libateq.org>
2024-08-08 23:21:00 +02:00
Cédric Krier 20a3f53d2b Do not filter with context lines for aged balance
Closes #12210
2024-07-26 23:25:02 +02:00
Cédric Krier 147be849f4 Prevent reconcile lines using write-off with the same account
Closes #13425
2024-07-27 15:15:55 +02:00
Cédric Krier 115b1e0aee Unify message ID when creating invoice tax on non draft invoice 2024-07-27 10:23:30 +02:00
Cédric Krier 04f803bac3 Fix message ID when creating invoice tax on non draft invoice
Closes #13402
2024-07-27 10:22:32 +02:00
Sergi Almacellas Abellana ab907730e0 Update SII documentation link
Closes #13430
2024-08-01 10:16:01 +02:00
Cédric Krier 4d8805d432 Get product supplier from the same party as the purchase request
Closes #13424
2024-07-27 12:16:41 +02:00