From To filter domain

This commit is contained in:
2026-04-29 19:20:01 +02:00
parent a7d360b584
commit 589ff16401

View File

@@ -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