Update Gastos_anuales_Odoo_TI.py
This commit is contained in:
parent
49b9821202
commit
9979b44cf8
@ -1,4 +1,3 @@
|
||||
|
||||
import xmlrpc.client
|
||||
import xlsxwriter
|
||||
|
||||
@ -41,9 +40,9 @@ LEFT JOIN stock_warehouse sw ON pr.warehouse_id = sw.id
|
||||
INNER JOIN res_partner rpw ON sw.partner_id = rpw.id
|
||||
INNER JOIN hr_branch hb ON rpw.id = hb.partner_id
|
||||
WHERE
|
||||
pr.user_id in (274,901,13,1823)
|
||||
and pr.ordering_date >= '2024-01-01'
|
||||
and pr.ordering_date <= '2024-12-31'
|
||||
pr.user_id in (274,13,1823,2338)
|
||||
and pr.ordering_date >= '2025-01-01'
|
||||
and pr.ordering_date <= '2025-12-31'
|
||||
and am.state = 'posted'
|
||||
and am.invoice_type_code = '01'
|
||||
group by
|
||||
|
||||
Loading…
Reference in New Issue
Block a user