Limit agent field on sale and invoice to the type 'agent'

issue6845
review40751003
This commit is contained in:
Cédric Krier committed 2017-10-18 14:59:57 +02:00
1 parent 6aeedca8ef
commit ea5a81e67a
2 files changed
+2

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ class Invoice:
__name__ = 'account.invoice'
agent = fields.Many2One('commission.agent', 'Commission Agent',
domain=[
('type_', '=', 'agent'),
('company', '=', Eval('company', -1)),
],
states={
+1
View File
@@ -15,6 +15,7 @@ class Sale:
__name__ = 'sale.sale'
agent = fields.Many2One('commission.agent', 'Commission Agent',
domain=[
('type_', '=', 'agent'),
('company', '=', Eval('company', -1)),
],
states={