summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Baptiste <kba@odoo.com>2020-02-25 14:47:36 +0000
committerKevin Baptiste <kba@odoo.com>2020-02-25 14:47:36 +0000
commit659549d4e339a73576dde1562cd99b6188d30ec5 (patch)
treeade7df5cbfc76fb2e61004fd06cd24746fc1f428
parent1d135ffc061ab6c8c607c476599d4a18607d5d8b (diff)
[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>
-rw-r--r--addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml b/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml
index 8a0a1708f9e..27915ff0496 100644
--- a/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml
+++ b/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml
@@ -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'),
]
}"
/>