콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2009 화면

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.

아바타
취소