تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6398 أدوات العرض

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    

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

الكاتب

thanks that worked like butter

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 20
3970
0
يونيو 24
1525
1
مايو 24
3185
2
أغسطس 23
2987
0
فبراير 22
2780