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

I just need to know that how can I add the field cost price on the odoo POS Sale Details report,

also please give the location or code that where can I copy my code to    

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

The code for original sale report is in the path addons/point_of_sale/views/report_saledetails.xml. You can inherit the template "report_saledetails" to add the cost price.
To know about inheriting existing report you can refer the blog below

https://www.cybrosys.com/blog/modifying-existing-qweb-reports-in-odoo13

If you need to add from Odoo itself follow the steps below

->Activate developer mode from settings

->Go to Technical->User Interface->Views->report_saledetails then edit the view like below


Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

can I add the code without inheiriting the template, it will be great if i can do the same with front end, can I ?

Hi,

We have updated the answer please try that

Tác giả

thanks that worked like butter

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 20
4255
0
thg 6 24
1842
1
thg 5 24
3756
2
thg 8 23
3299
0
thg 2 22
3124