Limit agent field on sale and invoice to the type 'agent'
issue6845 review40751003
This commit is contained in:
1 parent
6aeedca8ef
commit
ea5a81e67a
2 files changed
+2
No files matched your search
@@ -17,6 +17,7 @@ class Invoice:
|
||||
__name__ = 'account.invoice'
|
||||
agent = fields.Many2One('commission.agent', 'Commission Agent',
|
||||
domain=[
|
||||
('type_', '=', 'agent'),
|
||||
('company', '=', Eval('company', -1)),
|
||||
],
|
||||
states={
|
||||
|
||||
Reference in new issue
Block a user