瀏覽代碼

Filtros de fechas para ventas y lineas de venta en producto

sebas 3 年之前
父節點
當前提交
0a0e19f676
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      view/sale_view.xml

+ 1 - 1
view/sale_view.xml

@@ -10,7 +10,7 @@
               <search>
 
                   <separator/>
-                  <filter string="Este año" name="year" domain="[('create_date','&lt;=', time.strftime('%%Y-12-31')),('date_order','&gt;=',time.strftime('%%Y-01-01'))]"/>
+                  <filter string="Este año" name="year" domain="[('date_order','&lt;=', time.strftime('%%Y-12-31')),('date_order','&gt;=',time.strftime('%%Y-01-01'))]"/>
                   <filter string="Año pasado " domain="[('date_order','&gt;=',(context_today()-relativedelta(years=1)).strftime('%%Y-01-01')),('date_order','&lt;=', time.strftime('%%Y-01-01'))]"/>
                   <filter string="Mes actual" domain="[('date_order','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('date_order','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
                   <filter string="Mes pasado" domain="[('date_order','&gt;=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),('date_order','&lt;',time.strftime('%%Y-%%m-01'))]"/>