Skip to Content
Menu
This question has been flagged
3 Replies
5883 Views

is there any possible way to add the name of the table that had the order in the printed bill of the restaurant module,and which file needs to be modified?I have already posted this question in details with all things that I have tried to add in some files but unfortunatlywith no answer! any help would be appreciated.

Thanks.

Avatar
Discard
Best Answer

Hi Amina,

I posted the code <t t-esc="widget.pos.table.name"/><br />   
on the file C:\Program Files\Odoo 11.0\server\odoo\addons\point_of_sale\static\src\xml 

Receipt

</div>

<div class="pos-receipt-container">

</div>

</div>

</div>

</div>

</t>

<t t-esc="widget.pos.table.name"/><br />

<t t-name="XmlReceiptWrappedProductNameLines">

<t t-foreach="line.product_name_wrapped.slice(1)" t-as="wrapped_line">

<line>


What am I doing wrong?


Regards,


Matu

Avatar
Discard
Best Answer

thanks very helpful

Avatar
Discard
Author Best Answer

for all people who have interest in this I figured out how to add that field so first I thought that only the pos restaurant module files that needs to be modified so I was wrong and it's what it was all about,so the main file that should be modified is the addons\point_of_sale\static\src\xml\pos.xml ,to specifiy it's the PosTicket template,so the modification showed up right away because after all that restaurant module depends on the main point of sale 

 I added my code just after the shop widget like :

 Table: <t t-esc="widget.pos.table.name"/><br />

and name of the table was added in the printed ticket 

hope this helps you

Avatar
Discard

Thank you. It works !!