Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3243 Lượt xem

hi,

I am using odoo v10 community

I want to create csv report for all invoice for the signed in user. There are few calculations to be done in output CSV file so default export cant be opted

structure of csv file is something like..

Inv_no    inv_amount    Tax@5%  Tax@18%   grand_total ... ( and few custom fields as such)

----------

I have my new module.

Please advice, how to fetch list of all Invoices data so I can do calculations and write in CSV.

I inherited account.invoice  but not able to understand how can I get all Invoices details and how to traverse to which list / dictionary ??
I know what to do .. but how to do is troubling me... Still new to odoo world.

I am looking code to traverse through list of all Invoices so I can quickly add my fields and write to csv making required calculations..


Appreciate support please team. I now this might be silly but any advice around is highly appreciated.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 23
2610
1
thg 1 22
1454
3
thg 2 25
2449
1
thg 11 24
2132
1
thg 11 24
1343