diff --git a/modules/purchase_trade/lot.py b/modules/purchase_trade/lot.py index 61179b7..4d00b54 100755 --- a/modules/purchase_trade/lot.py +++ b/modules/purchase_trade/lot.py @@ -3343,8 +3343,12 @@ class ContractDetail(ModelView): ], 'Price type', required=True) currency_unit = fields.Selection('get_currency_unit',string="Curr/Unit") reference = fields.Char("Reference") - from_location = fields.Many2One('stock.location',"From location") - to_location = fields.Many2One('stock.location',"To location") + from_location = fields.Many2One( + 'stock.location', "From location", + domain=[('type', 'in', ['storage', 'supplier'])]) + to_location = fields.Many2One( + 'stock.location', "To location", + domain=[('type', 'in', ['storage', 'customer'])]) payment_term = fields.Many2One('account.invoice.payment_term',"Payment Term", required=True) @classmethod