Limit invoice line to same company as landed cost
issue10438 review336251002
This commit is contained in:
1 parent
d6cf09859a
commit
a56b1a7e1e
1 file changed
+2
-1
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user