Commit Graph
28 Commits
Author SHA1 Message Date
Cédric Krier aefd12642a Use always the immutable value from the cache
This prevents issues like #14433 from being missed.
2025-12-19 09:39:32 +01:00
Cédric Krier 5b4efd9fd6 Order product by position instead of sequence for Shopify
0b69c726fc26 order by the non-existing sequence field instead of position.
2025-12-29 20:47:40 +01:00
Cédric Krier 66dceea550 Use product sequence to sort for Shopify
An inactive product is not in the products list of the template.

Closes #14439
2025-12-19 19:44:31 +01:00
Cédric Krier 23b4ec2aad Add admin URL to Shopify identifiers
Closes #14160 #14164
2025-08-14 14:31:32 +02:00
Cédric Krier 047d89886b Set compare-at price on Shopify using non-sale price
Closes #14155
2025-08-12 15:32:34 +02:00
Cédric Krier 807b593f1e Use GraphQL API instead of REST API of Shopify
The REST API has been deprecated.

Closes #13598
2025-12-01 16:46:23 +01:00
Cédric Krier 85920a9c3c Lock web shops when fetching order from Shopify
It is needed to avoid to fill the ir.error table with unique constraint error
on the web ID when the method is called in parallel by tasks posted from the
webhook.

Closes #14360
2025-11-13 15:23:47 +01:00
Cédric Krier 342a7a42f9 Use queue to update sales from Shopify orders
Closes #14274
2025-10-05 17:44:47 +02:00
Cédric Krier 0f331ef1fe Make Shopify identifier unique per record and web shop
Closes #14266
2025-09-30 15:55:59 +02:00
Cédric Krier c3c1b962ed Limit of shopify_orders context to test
Closes #14260
2025-09-29 11:21:39 +02:00
Cédric Krier 6f876d10c4 Always try to confirm Shopify sale after creation and update
This is in case there is no transaction/payment to trigger the confirmation.

Closes #14256
2025-09-25 17:32:00 +02:00
Cédric Krier 4fbf660b85 Add option to notify Shopify customer about fulfillment
Closes #14244
2025-09-18 14:12:16 +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 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
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 e60c2ba8b4 Create draft sale with guest party for Shopify order without customer and update it later
Closes #14167
2025-08-16 10:33:56 +02:00
Cédric Krier 08ed6e529b Clear the Shopify tax adjustment before recalculating it
Closes #14143
2025-08-21 10:38:46 +02:00
Cédric Krier aa0bf2e7ba Reset to draft sales updated from Shopify
As the update from Shopify may need to add new lines which can only be created
for a draft sale.

Closes #14099
2025-07-02 13:25:56 +02:00
Cédric Krier dedbd6df06 Reset to quotation Shopify sale with insufficient authorized payment amount
Shopify order can be modified from the admin in such way that the total
increase and it is only partially paid.
In such case we must prevent to process the sale by resetting to quotation
until being fully paid.

Closes #13961
2025-04-03 17:21:15 +02:00
Cédric Krier 130da3b56d Archive Shopify products removed instead of deleting them
Such that customization made from the admin interface are preserved if the
product is republished.

Closes #13962
2025-04-04 00:27:57 +02:00
Cédric Krier 5aeff66acd Use ModelStorage hooks instead of extending create/write/delete 2025-04-06 00:14:17 +02:00
Cédric Krier 8653689b22 Do not fetch Shopify locations without session parameters
Closes #13888
2025-02-25 16:19:53 +01:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier 575d1d0132 Change _changed_values and _save_values properties to method
Closes #13317
2024-06-09 19:54:52 +02:00
Cédric Krier c80310c2dc Add warning when changing credentials
Closes #13126
2024-03-25 14:24:55 +01:00
Cédric Krier a0c723970f Test if Shopify attribute is not empty before using it
Shopify seems to have changed from not setting empty attributes to setting
them empty.

Closes #12097
2023-02-17 12:07:43 +01:00
Cédric Krier ca02b37147 Prepare migration to monorepo 2022-12-16 14:53:41 +01:00