Limit invoice line to same company as landed cost

issue10438
review336251002
This commit is contained in:
Cédric Krier committed 2021-05-26 23:44:13 +02:00
1 parent d6cf09859a
commit a56b1a7e1e
1 file changed
+2 -1
+2 -1
View File
@@ -111,12 +111,13 @@ class LandedCost(Workflow, ModelSQL, ModelView, MatchMixin):
('landed_cost', '=', None),
],
domain=[
('company', '=', Eval('company', -1)),
('invoice.state', 'in', ['posted', 'paid']),
('invoice.type', '=', 'in'),
('product.landed_cost', '=', True),
('type', '=', 'line'),
],
depends=['state'])
depends=['state', 'company'])
allocation_method = fields.Selection([
('value', 'By Value'),
], 'Allocation Method', required=True,