Commit Graph
103 Commits
Author SHA1 Message Date
Cédric Krier 5e211dd515 Use a sentinel as default value for setting attribute only if changed
For new instances, we must set also the attribute with value `None` as they may
be tested later.

Closes #15060
(grafted from bfe3756af384f4fce94244761d5f5dd3f62d0ff6)

--HG--
branch : 7.0
2026-09-03 15:49:20 +02:00
Cédric Krier 1050494552 Use binary version of psycopg for tests
(grafted from 844c3d391796ffe89afce54d12f6bf5f4aa8ef4e)

--HG--
branch : 7.0
2026-07-17 22:16:19 +02:00
Cédric Krier b89c5bf43d Increase version number
--HG--
branch : 7.0
2026-07-15 18:39:40 +02:00
Cédric Krier 0830b49f21 Prepare release web_shop_shopify-7.0.16
--HG--
branch : 7.0
2026-07-15 18:39:26 +02:00
Cédric Krier e67e3b41d5 Process Shopify sale only if the authorized payment amount is greater than the amount to pay
The correction of #14816 was wrong and the amount to pay should be modified if
there is a global refund.
(grafted from dfbbbe26ad8eb25fd6dc1ad0a68cb7cec8307aae)

--HG--
branch : 7.0
2026-06-03 15:06:05 +02:00
Cédric Krier 06f56c732f Increase version number
--HG--
branch : 7.0
2026-05-20 23:28:20 +02:00
Cédric Krier 9c2ab24b80 Prepare release web_shop_shopify-7.0.15
--HG--
branch : 7.0
2026-05-20 23:28:10 +02:00
Cédric Krier ce96f6289d Do not reset to quotation Shopify order already processed
After a refund the authorized payment amount may be lower than the amount to
pay but the sale should still stay in processing or done state.

Closes #14816
(grafted from 9df991a256f872f8d9623b675732b1480534e553)

--HG--
branch : 7.0
2026-05-05 00:11:08 +02:00
Cédric Krier 9d94d365a3 Increase version number
--HG--
branch : 7.0
2026-02-01 11:11:01 +01:00
Cédric Krier 18dc517b1f Prepare release web_shop_shopify-7.0.14
--HG--
branch : 7.0
2026-02-01 11:10:52 +01:00
Cédric Krier 84341896b7 Round quantity instead of truncate for Shopify fulfillment
Closes #14502
(grafted from 61524b93e2e758daa82e7d81f3a66ff64823328e)

--HG--
branch : 7.0
2026-01-15 17:28:20 +01:00
Cédric Krier 44badd4f28 Lock the sale being processed for Shopify
Closes #14500
(grafted from 0d96a4b8d2ad4a7fd7ea8be06202afeee3d6df19)

--HG--
branch : 7.0
2026-01-15 15:22:09 +01:00
Cédric Krier f6c19967d2 Do not try to fulfill on Shopify cancelled or closed fulfillment order
Closes #14479
(grafted from 1950c9a7b990c03a00d380d54c8989a527b52579)

--HG--
branch : 7.0
2026-01-09 11:34:16 +01:00
Cédric Krier 88086bfeef Increase version number
--HG--
branch : 7.0
2025-12-17 19:30:34 +01:00
Cédric Krier 2b6c0bee5d Prepare release web_shop_shopify-7.0.13
--HG--
branch : 7.0
2025-12-17 19:30:25 +01:00
Cédric Krier de31a7c55c Keep sale line removed from Shopify order
It is not allowed to delete a sale line if the sale state is not draft or
cancelled.

Closes #14376
(grafted from 02d1fb1eaefe00ba07037e70ce0827530c513546)

--HG--
branch : 7.0
2025-11-20 10:14:13 +01:00
Cédric Krier 0d7fe2d02e Do not prevent to process sale line without product and quantity from Shopify
When a line is removed on Shopify, the quantity of the sale line is set to 0 in
Tryton because Shopify refund the line.
So such line without product must not prevent to process the sale as they will
not generate any stock move nor invoice line.

Closes #14375
(grafted from bbd807ca4b87dc0470bd5f3db69681e7371c6d13)

--HG--
branch : 7.0
2025-11-20 10:10:27 +01:00
Cédric Krier b54654ed4c Do not create contact mechanism for invalid email from Shopify
Closes #14368
(grafted from 643142484aee74972d3caee2c4a449f8f4abba7e)

--HG--
branch : 7.0
2025-11-17 14:38:07 +01:00
Cédric Krier 2f15c4eb3f Increase version number
--HG--
branch : 7.0
2025-11-02 17:04:17 +01:00
Cédric Krier 898aab1d80 Prepare release web_shop_shopify-7.0.12
--HG--
branch : 7.0
2025-11-02 17:04:08 +01:00
Cédric Krier 5442cc8c5b Do not create Shopify fulfillment orders with a quantity of zero
Closes #14286
(grafted from dc5b77dfdc5155c07ec241e20228e3479a91a372)

--HG--
branch : 7.0
2025-10-11 15:06:20 +02:00
Cédric Krier cbafef99bc Increase version number
--HG--
branch : 7.0
2025-10-20 14:39:34 +02:00
Cédric Krier 8234e5f89a Prepare release web_shop_shopify-7.0.11
--HG--
branch : 7.0
2025-10-20 14:39:26 +02:00
Cédric Krier 8e054bcb91 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
(grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)

--HG--
branch : 7.0
2025-09-25 17:32:00 +02:00
Cédric Krier f7c374558d Increase version number
--HG--
branch : 7.0
2025-10-02 23:40:08 +02:00
Cédric Krier c4d88f6d90 Prepare release web_shop_shopify-7.0.10
--HG--
branch : 7.0
2025-10-02 23:39:58 +02:00
Cédric Krier 5f79350123 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
(grafted from 249eae0d009b54b6c01150dbe261dde8475afdb3)

--HG--
branch : 7.0
2025-09-17 15:21:54 +02:00
Cédric Krier cc0222be5e 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
(grafted from 1f2cf9e448a166ef67864916031b703ffbf8befa)

--HG--
branch : 7.0
2025-09-17 13:23:09 +02:00
Cédric Krier 2685b1ed58 Do not try to fulfill move not linked to a Shopify order line
Closes #14232
(grafted from 4da957dfedc2f2c7ee440e620e168525a848d363)

--HG--
branch : 7.0
2025-09-16 10:57:50 +02:00
Cédric Krier a9c8c79e3d Use the presentment currency of the Shopify order for the sale currency
Closes #14214
(grafted from e1f8cd495429eae5b7015a8e92e55f068d645375)

--HG--
branch : 7.0
2025-09-04 10:37:26 +02:00
Cédric Krier 1fcf4797dc Compare compact format of contact mechanism when updating Shopify customer
Closes #14211
(grafted from ec97714ff8ca390738a1aad5c588b5e2e0bc39e4)

--HG--
branch : 7.0
2025-09-08 14:05:05 +02:00
Cédric Krier 0b267dbfe3 Refund Shopify shipping cost when no shipment was sent
Closes #14218
(grafted from 625870f96642a68ac302b0870cae0d59b6488e3a)

--HG--
branch : 7.0
2025-09-05 17:57:12 +02:00
Cédric Krier 69dc54e02a 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
(grafted from 05119ff90b8b390718f2bf1390a7307bd0a8dcfc)

--HG--
branch : 7.0
2025-08-29 14:44:26 +02:00
Cédric Krier d23f0ea950 Increase version number
--HG--
branch : 7.0
2025-09-15 18:11:05 +02:00
Cédric Krier 5f98c2542d Prepare release web_shop_shopify-7.0.9
--HG--
branch : 7.0
2025-09-15 18:10:57 +02:00
Cédric Krier 80b586ddd1 Do not call _changed_values as it is a property
92a025702d76 backported a usage that is not in 7.0 series as the
_changed_values is still a property instead of a method.

--HG--
branch : 7.0
2025-09-14 23:04:55 +02:00
Cédric Krier 7f9096dd8f Do not refund the non-movable lines to Shopify
Closes #14209
(grafted from 50c099768f996c0f36ae50f1ab58e5af53b5f150)

--HG--
branch : 7.0
2025-09-14 02:02:11 +02:00
Cédric Krier 064f7f0a79 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
(grafted from 0783f2d58b2419a6aebcd10c00f6a759befb6fbb)

--HG--
branch : 7.0
2025-08-25 10:37:14 +02:00
Cédric Krier 8612ac6637 Update Shopify payment even if the captured amount is zero
Closes #14181
(grafted from a6c0addc0824723749f1c874c9ffb9b823e686ef)

--HG--
branch : 7.0
2025-08-21 17:49:46 +02:00
Cédric Krier 1b6831faf7 Always decrease Shopify sale line by the refunded quantity
The restock type is only for the stock level calculation of Shopify which is
not useful as Tryton always update the stock level.

Closes #14179
(grafted from 57142c109d6b7146745ef192e9e8947c96bb6af3)

--HG--
branch : 7.0
2025-08-20 16:29:15 +02:00
Cédric Krier be723c1027 Define weight as Shopify fields on product template
The product_measurement module defines the weight on the template.

Closes #14173
(grafted from 3946dd01248883f629c6b44d1e1946652453b3ef)

--HG--
branch : 7.0
2025-08-19 16:37:43 +02:00
Cédric Krier 166291c29e Set sale attribute only if changed
This avoid to clear the sale if there are no actual change on the sale order.

Closes #14171
(grafted from 51e9c921e4e44a90472eebcfa137170e2ee28ec0)

--HG--
branch : 7.0
2025-08-19 13:33:55 +02:00
Cédric Krier 7155639eed Fix name of Shopify webhook topic for payment
Closes #14168
(grafted from 9fd71cbda5720e596678512683d7fd9bae894b5f)

--HG--
branch : 7.0
2025-08-16 14:16:40 +02:00
Cédric Krier 9a9757fc21 Create draft sale with guest party for Shopify order without customer and update it later
Closes #14167
(grafted from 1b7e09377711d17582ae531f3d868dc99a031091)

--HG--
branch : 7.0
2025-08-16 10:33:56 +02:00
Cédric Krier 648bc04dcc Increase version number
--HG--
branch : 7.0
2025-09-03 20:34:21 +02:00
Cédric Krier 07d71e1fd8 Prepare release web_shop_shopify-7.0.8
--HG--
branch : 7.0
2025-09-03 20:34:13 +02:00
Cédric Krier f69b50af84 Clear the Shopify tax adjustment before recalculating it
Closes #14143
(grafted from 27d0430555b070fcca637c9a0dab40c083d7db15)

--HG--
branch : 7.0
2025-08-21 10:38:46 +02:00
Cédric Krier 3fe4efe4e4 Set shipment cost method on Shopify sale only if a carrier is set
Closes #14105
(grafted from 83baf33015e42627c3fcebc8e1becac41c1260b1)

--HG--
branch : 7.0
2025-07-07 11:20:12 +02:00
Cédric Krier 74a7ee5a1d Use quantity set on the line to compute unit price from Shopify order
The quantity of the line item may be different if part of the line item has
been refunded or cancelled.

Closes #14103
(grafted from 98b1e09aecad37afc1c9ae630f855d46da96b640)

--HG--
branch : 7.0
2025-07-04 10:15:23 +02:00
Cédric Krier b80eb0af20 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
(grafted from d899456fefd6d8a0b00dfcc1dffcc3c8613d97b4)

--HG--
branch : 7.0
2025-07-02 13:25:56 +02:00