changeset abba0a89b3c1 in modules/project_revenue:default
details:
https://hg.tryton.org/modules/project_revenue?cmd=changeset&node=abba0a89b3c1
description:
Use declarative index definition for ModelSQL
issue5757
review361251002
diffstat:
purchase.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 555fdc46e8d1 -r abba0a89b3c1 purchase.py
--- a/purchase.py Thu Jun 16 14:31:01 2022 +0200
+++ b/purchase.py Tue Oct 11 00:44:50 2022 +0200
@@ -8,7 +8,8 @@
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)),
],