From To filter domain
This commit is contained in:
@@ -3343,8 +3343,12 @@ class ContractDetail(ModelView):
|
|||||||
], 'Price type', required=True)
|
], 'Price type', required=True)
|
||||||
currency_unit = fields.Selection('get_currency_unit',string="Curr/Unit")
|
currency_unit = fields.Selection('get_currency_unit',string="Curr/Unit")
|
||||||
reference = fields.Char("Reference")
|
reference = fields.Char("Reference")
|
||||||
from_location = fields.Many2One('stock.location',"From location")
|
from_location = fields.Many2One(
|
||||||
to_location = fields.Many2One('stock.location',"To location")
|
'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)
|
payment_term = fields.Many2One('account.invoice.payment_term',"Payment Term", required=True)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user