Fix domain in invoices wizard date fields

issue6088
review25851002
This commit is contained in:
Xavier Codinas committed 2016-12-01 13:37:54 +01:00
1 parent c1e30d166b
commit 89fbbb56a2
1 file changed
+2 -2
+2 -2
View File
@@ -434,13 +434,13 @@ class CreateInvoiceAsk(ModelView):
__name__ = 'commission.create_invoice.ask'
from_ = fields.Date('From',
domain=[
If(Bool(Eval('to')), [('from', '<=', Eval('to'))],
If(Eval('to') & Eval('from_'), [('from_', '<=', Eval('to'))],
[]),
],
depends=['to'])
to = fields.Date('To',
domain=[
If(Bool(Eval('from_')), [('to', '>=', Eval('from_'))],
If(Eval('from_') & Eval('to'), [('to', '>=', Eval('from_'))],
[]),
],
depends=['from_'])