Commit Graph
2259 Commits
Author SHA1 Message Date
Cédric Krier 771e76f0cc Support taxes from Shopify shipping product
Closes #14192
2025-08-25 13:37:31 +02:00
Cédric Krier 778d064f56 Add routes to open Shopify objects
Closes #14176
2025-08-20 14:01:18 +02:00
Cédric Krier c642173094 Add support for credit refunds with Shopify
Closes #14165
2025-08-15 13:08:08 +02:00
Cédric Krier 245092d63b Add support for refunding payments on sales
Closes #14166
2025-08-15 09:11:10 +02:00
Cédric Krier 7c4504f23a Do not use the order object from Shopify webhook update
But fetching the order we ensure to fetch all the data needed.
2025-08-16 14:10:56 +02:00
Cédric Krier 440b920654 Add button to update the sales from their web shop
Closes #14163
2025-08-14 12:56:41 +02:00
Cédric Krier faf11a8e48 Add web shop URLs to products
Closes #14160
2025-10-09 10:20:31 +02:00
Cédric Krier 6ba56ce0c8 Allow a different list price to be set for each variant
Closes #14154
2025-10-07 16:23:45 +02:00
Cédric Krier 965aa923c7 Include reference in shipment record name and fallback to id when empty
Closes #14147
2025-08-06 10:10:23 +02:00
Cédric Krier df1f944489 Order POS sale by descending date
Closes #13985
2025-08-01 10:34:42 +02:00
Xavi Hermoso 93385742d2 Make quality control points name unique per control
Closes #14124
2025-10-08 13:00:22 +00:00
Cédric Krier f325924717 Do not update measurements of all shipments for empty list
Closes #14271
2025-10-02 10:44:10 +02:00
Cédric Krier 5d6ec458c7 Remove unnecessary depends on Shopify UoM of product 2025-09-30 09:54:01 +02:00
Nicolas Évrard 818f26253a Remove has_window_functions on Database 2025-10-04 22:45:53 +02:00
Cédric Krier 981d4768a1 Rename config variable to avoid naming collision
bd7e0b1a1276 import the trytond config as config now which was overridden by
the account configuration instance.
2025-10-07 15:15:52 +02:00
Cédric Krier befa450e47 Do not lock web shop records when fetching or updating Shopify order
It is not needed as the unique constraint on the sale for the shopify
identifier ensures that only one sale is created per order.

Closes #14259
2025-09-29 11:15:52 +02:00
Cédric Krier 74ee169c54 Refactor of trytond.config to add cache
This removes the need to store configuration in global variable and so make it
easier to update for example for testing.

Closes #14249
2025-10-07 08:19:57 +02:00
Sergi Almacellas Abellana a705be3b98 Leave the unit price field empty for the purchase line of production outsourcing
Since changeset 65be15fb7d8a the unit price is not required until
the purchase is confirmed

Closes #14245
2025-09-19 09:12:53 +02:00
Nicolas Évrard 736eda2333 Handle URL host of the bus on login instead of using a redirect
Browsers remove authorization header upon cross-origin redirect.

Closes #12329
2025-10-06 17:03:41 +02:00
Cédric Krier c9980988cc Store in the cache all the lines to reconcile when searching for the best reconciliation
When the last line is pop from the debit/credit list, the access to the balance
may invalidate the cache of other records to fill the cache of the last one.
This may become very inefficient on large list of lines.
So by setting the record cache size to the size of the list of lines, we ensure
that no cache is invalidated during the calculation.

Closes #14230
2025-09-15 13:18:39 +02:00
Cédric Krier 134c35345e Make product_price_list_dates extras depend on purchase_price_list
Closes #14241
2025-09-18 09:13:01 +02:00
Cédric Krier fbee7be655 Make sale_product_quantity extras depend on sale_point
Closes #14240
2025-09-18 09:10:45 +02:00
Cédric Krier c0df960de7 Make sale_supply_production extras depend on production_routing
Closes #14239
2025-09-18 09:08:10 +02:00
Cédric Krier 95456d6f92 Use tryton.cfg to register in the Pool 2025-09-18 16:42:29 +02:00
Cédric Krier 390dd930d8 Compare product data feed CSV independently of the header order in tests 2025-09-18 09:44:17 +02:00
Cédric Krier 63ef97ca4f Use only components without product from the template as the default components for the product
Closes #14246
2025-09-19 14:04:29 +02:00
Cédric Krier b934cd7b4e Enforce the same company, currency and party when the payment origin is a sale
Closes #14237
2025-09-17 16:28:04 +02:00
Cédric Krier c76a97868a Enforce the same party only for draft payments of sales
Closes #14236
2025-09-17 16:25:56 +02:00
Cédric Krier 7153bca657 Update sale addresses also for guest party from Shopify order
If the guest party is set back because the customer has been removed on
Shopify, the addresses must be also set back to those from the guest party.

Closes #14235
2025-09-17 15:21:54 +02:00
Cédric Krier 076fcbcc0a Use current total price when creating sale from Shopify order
At the creation the order may already have the total price modified by refund
etc.

Closes #14234
2025-09-17 13:23:09 +02:00
Cédric Krier 9e725456fd Do not try to fulfill move not linked to a Shopify order line
Closes #14232
2025-09-16 10:57:50 +02:00
Cédric Krier 6c08365879 Do not set weight nor dimension to Sendcloud parcel when empty
Closes #14231
2025-09-15 17:58:55 +02:00
Cédric Krier a1b80e1af5 Use the presentment currency of the Shopify order for the sale currency
Closes #14214
2025-09-04 10:37:26 +02:00
Cédric Krier 61731f9f1e Compare compact format of contact mechanism when updating Shopify customer
Closes #14211
2025-09-08 14:05:05 +02:00
Cédric Krier 32a8c0d6eb Refund Shopify shipping cost when no shipment was sent
Closes #14218
2025-09-05 17:57:12 +02:00
Cédric Krier 8f23c0d36b Refund Shopify order also when the sale state is done
If nothing has been shipped, the shipment state is "None" but the sale state is
"Done".

Closes #14208
2025-08-29 14:44:26 +02:00
Cédric Krier 13bb47b868 Remove default lead time for product sold
By default it is better to assume that we do not know the default lead time of
the company which allows to select the first supplier no matter its lead time.
The sale already plans the stock move to today when the planned shipping date
is empty since a748de86c8d6.

Closes #14224
2025-09-10 09:47:03 +02:00
Cédric Krier 3c82eeca33 Order locations by the MPTT left field when searching on quantities
This improves the likelihood that a full branch of locations will be calculated
in the same batch.

Closes #14182
2025-08-22 10:11:57 +02:00
Maxime Richez d72c4e2a95 Allow modifications of incoterm until customer's shipments has been shipped
Closes #14203
2025-09-14 22:23:45 +02:00
Alex Alias Montserrar 9223e17240 Test if address has a country before display country name in SEPA mandate report
Closes #14020
2025-09-14 11:47:59 +02:00
Cédric Krier 1de38fedd2 Only validate packing for shipments with a shipping service
Closes #14217
2025-09-05 16:52:11 +02:00
Nicolas Évrard 77984124dd Add a test to ensure that Model._order is predictable 2025-09-11 00:30:16 +02:00
Cédric Krier 2282f46118 Do not refund the non-movable lines to Shopify
Closes #14209
2025-08-29 15:01:23 +02:00
Cédric Krier 5fbfae5a7b Rename the XML ids of the quality production inspection wizard 2025-09-02 13:38:24 +02:00
Cédric Krier c0d29441e9 Fix the XML id of the quality production inspection wizard
Closes #14113
2025-09-02 13:36:42 +02:00
Sergi Almacellas Abellana 2ae56ac164 Add readonly states to stock quantity issue model
Closes #14191
2025-08-25 12:39:40 +02:00
Sergi Almacellas Abellana 876e972fb6 Add default lead time on product configuration
Changeset 0a0b8be85ef5 added a default value for the multivalue model, but
not for the product configuration, so it is always ignored.

Closes #14188
2025-08-25 10:58:08 +02:00
Cédric Krier 42ba69bfa6 Use line item quantity to calculate unit price of Shopify sale line
The total discount is based on the initial quantity of the line item instead of
the current quantity.

Closes #14187
2025-08-25 10:37:14 +02:00
Cédric Krier 7f0cb85631 Check for assigned move per company and recent date
d84b63604b10 calculates the recent date per company so we must search for moves
using this date for the same company.
2025-08-23 21:18:43 +02:00
Cédric Krier c169d22f96 Update Shopify payment even if the captured amount is zero
Closes #14181
2025-08-21 17:49:46 +02:00