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
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
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
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
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
This is in case there is no transaction/payment to trigger the confirmation.
Closes#14256
(grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)
--HG--
branch : 7.0
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
At the creation the order may already have the total price modified by refund
etc.
Closes#14234
(grafted from 1f2cf9e448a166ef67864916031b703ffbf8befa)
--HG--
branch : 7.0
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
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
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
The product_measurement module defines the weight on the template.
Closes#14173
(grafted from 3946dd01248883f629c6b44d1e1946652453b3ef)
--HG--
branch : 7.0
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
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
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