Make sale_invoice_grouping_period visible only when sale_invoice_grouping_method is set.
This commit is contained in:
parent
e0344902f8
commit
738213b07d
4
party.py
4
party.py
|
@ -18,4 +18,6 @@ class Party:
|
|||
__name__ = 'party.party'
|
||||
|
||||
sale_invoice_grouping_period = fields.Property(fields.Selection(
|
||||
GROUPING_PERIODS, 'Sale Invoice Grouping Period'))
|
||||
GROUPING_PERIODS, 'Sale Invoice Grouping Period', states={
|
||||
'invisible': Eval('sale_invoice_grouping_method') == None,
|
||||
}, depends=['sale_invoice_grouping_method']))
|
||||
|
|
Loading…
Reference in New Issue