Skip to Content
Menu
This question has been flagged
1447 Views

Hello

I want use with_context for print price list between 2 date:

dates_between_dates(): function from start_date: to end_date ==>


<tt-foreach="o.dates_between_dates()"t-as="each_day">
<tr t-foreach="category_products"t-as="product"> 

<strongt-field="product.with_context(pricelist=pricelist.id, date=each_day).price"/>

tr>

 


The problem is that the values do not change when the date("each_day") is changed, and the same call is saved and displayed the first time.

Avatar
Discard