[FIX] sale_timesheet: fix the add to cart traceback on portal
Reproduction step: - Create Sale Oder(Add optional product) - Customer Preview(portal) - Add to cart closes odoo/odoo#64442 Taskid: 2431351 X-original-commit: b7a98151694cd7e65d168cdc52dbf803c792b52d Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
|
||||
<template id="sale_order_portal_content_inherit" inherit_id="sale.sale_order_portal_content">
|
||||
<xpath expr="//td[@id='product_name']" position="inside">
|
||||
<a t-if="len(timesheets.filtered(lambda t: t.so_line == line)) > 0" t-att-href="'/my/timesheets?search_in=sol_id&search=%s' % line.id">View Timesheets</a>
|
||||
<a t-if="timesheets and len(timesheets.filtered(lambda t: t.so_line == line)) > 0" t-att-href="'/my/timesheets?search_in=sol_id&search=%s' % line.id">View Timesheets</a>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user