If the sale is linked to a shipment with a different cost method than order,
it should not be considered to decide to invoice or not the sale shipment
cost.
Closes#13171
(grafted from f290dbb1479d4a4e4aabb2f66d93bf4e042f42e6)
--HG--
branch : 7.0
A rule line for a country is not expected to be used when the country is
unknown.
Closes#13169
(grafted from cea3c89a740248a84ce48a906f1b1c33ba0fac5e)
--HG--
branch : 7.0
The warehouse of internal shipment is computed and may be empty if the from
location does not have a warehouse.
Closes#13129
(grafted from f4f85f4d31f0afe83bb8662d1c15ceecadbd753e)
--HG--
branch : 7.0
By using list_price_used we are sure to have a list price in the company
currency so there is not need for conversion.
Also list price of a product can be empty so we should not try to round it.
Closes#13110
(grafted from 710927560bfe722fc02c0d22bbdf2c1615f787a7)
--HG--
branch : 7.0
If there is no product defined on the project, the call to on_change_product
for the invoice line does not set the account field.
Closes#13111
(grafted from 01992016f36efdf8576a2453a084ba642e43d74f)
--HG--
branch : 7.0
The ModelView.button decorator is expected first positional argument to be
named records so we can not use keyword argument in this case.
Closes#13063
(grafted from d860272ff5b1f8e707cc29a358c288e7a83dbe70)
--HG--
branch : 7.0
Since 0809f9f56c4e the modified cost price is rounded with the price
precision.
Closes#13041
(grafted from 10c6c8773040b6b6035753fd6c2f91efbcc094d9)
--HG--
branch : 7.0
As the receivable, payable type may evolve over time, only draft state should
enforce it.
Closes#13145
(grafted from b328583085791f9873ce068c48e62e5d55a3d5b7)
--HG--
branch : 7.0
As the posted by employee field can not be modified once the invoice is
posted, the employee must be set only when it is an action of the user.
On processing the invoice, it is the internal posting method that must be used
so no employee is set nor any other warning checks.
Closes#13124
(grafted from 361b4624d10c7173ce439329d72e37d7fa02d00b)
--HG--
branch : 7.0
Since a2f811ed0e99 it is not allowed to store multiline in Char field.
Closes#13123
(grafted from 8c8e5c013a7ba90d85ebb39e7b74cb8a4dbe4e2d)
--HG--
branch : 7.0
It seems that UPS has fixed its API such that it always returns a list for
PackageResults but it is still better to test the actual result.
Closes#13116
(grafted from 5aeb838f993f9d5e55c10a4b24f9ad6cd67eae55)
--HG--
branch : 7.0