Enforce currency, invoice_type and party values between invoice and lines
The currency of an invoice line must always be the same as the invoice. For the invoice_type and party they must be the same only if set. issue9854 review324581002
This commit is contained in:
1 parent
4fb60ed8d6
commit
f841aab429
1 file changed
+2
@@ -88,6 +88,8 @@ class ShipmentOut(metaclass=PoolMeta):
|
||||
cost = Currency.compute(self.cost_currency, cost,
|
||||
invoice.currency, round=False)
|
||||
invoice_line.unit_price = round_price(cost)
|
||||
invoice_line.currency = invoice.currency
|
||||
invoice_line.company = invoice.company
|
||||
|
||||
taxes = []
|
||||
pattern = self._get_cost_tax_rule_pattern()
|
||||
|
||||
Reference in new issue
Block a user