Use declarative index definition for ModelSQL
issue5757 review361251002
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@ from trytond.pyson import Eval
|
||||
class Line(metaclass=PoolMeta):
|
||||
__name__ = 'purchase.line'
|
||||
|
||||
work = fields.Many2One('project.work', 'Work Effort', select=True,
|
||||
work = fields.Many2One(
|
||||
'project.work', "Work Effort",
|
||||
domain=[
|
||||
('company', '=', Eval('_parent_purchase', {}).get('company', -1)),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user