diff --git a/account.py b/account.py index 3fbab3dc78..513ddea6dc 100644 --- a/account.py +++ b/account.py @@ -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,