[IMP] sale_timesheet: hide invoice timesheet for down payment

Hide the date_invoice_timesheet field if 'down payment' is selected.

closes odoo/odoo#46265

Taskid: 2203363
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Kevin Baptiste
2020-02-25 14:47:36 +00:00
parent 1d135ffc06
commit 659549d4e3
@@ -9,8 +9,9 @@
<field name="date_invoice_timesheet" class="oe_inline" string="Invoice Timesheets up to" data-toggle="tooltip" data-placement="bottom"
title="Only timesheets not yet invoiced (and validated, if applicable) up to this date included will be invoiced. If no date is indicated, all timesheets not yet invoiced (and validated, if applicable) will be invoiced without distinction."
attrs="{
'invisible': [
'invisible': [ '|',
('invoicing_timesheet_enabled', '=', False),
('advance_payment_method', '!=', 'delivered'),
]
}"
/>