Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1980 Weergaven

Hello,


I am using Odoo v15 POS to manage a restaurant, which has products with variants.

After selling a product with a variant, we can see this variant in the receipt and in the order tab (POS > Orders > Orders), but not in the sale report (POS > Reports > Sale Report), which is a little bit annoying because it forces us to manually check the order to see which variant has been sold.

I opened the QWeb report "report_saledetails" to see if I could fix it, and here is the line to modify:


but when I try to change "product_name" to "full_product_name", as in "order.line", I get an error message.


Can anyone assist me with this, please?

Avatar
Annuleer
Beste antwoord

Hello @Tariq SOBHI


I hope you are doing well,


For you to be able to print the full product name in the POS > reports > sale report.

You will need to overwrite the 'get_sale_details' method in the point_of_sale(module) > models > pos_order.py and replace the below code lines with the mentioned code lines.

Please find code in comment. 

Hope this answer helps you.

Thanks & Regards,
Email: odoo@aktivsoftware.com     

Skype: kalpeshmaheshwari

Avatar
Annuleer

Please find code here :-

Code lines to be replaced before:

'product_name': product.name,
'code': product.default_code,

Replace the code lines with:

'product_name': product.display_name,
'code': '',

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jan. 23
2538
1
okt. 24
1480
1
jun. 23
8308
1
mei 19
2777
1
dec. 17
4814