Add related_party in search context of secondary party

issue9333
review323301002
This commit is contained in:
Cédric Krier committed 2020-05-19 19:01:46 +02:00
1 parent d55a414dac
commit 7c78d9020a
1 file changed
+4 -1
+4 -1
View File
@@ -71,7 +71,10 @@ class Subscription(Workflow, ModelSQL, ModelView):
'readonly': ((Eval('state') != 'draft')
| Eval('lines', [0])),
},
depends=['state'])
search_context={
'related_party': Eval('party'),
},
depends=['state', 'party'])
invoice_address = fields.Many2One(
'party.address', "Invoice Address",
domain=[