跳至内容
菜单
此问题已终结
6 回复
13764 查看

Hello 


I want to ask  how can i make client s name to be printed  on the POS receipt  

I hope that s possible  because i really need it  in my work 

形象
丢弃
最佳答案

Hi,

A third party module is available in the Odoo app store having the same functionalities. It will be bring the customer name in the pos ticket . Either you can use the module of check the code and see how it is done,

https://apps.odoo.com/apps/modules/10.0/pos_ticket/



Thanks



形象
丢弃
最佳答案
  1. If you use Odoo enterprise or online, simply activate the use of loyalty cards. No customization needed.

  2. If you use Odoo community, loyalty cards feature is not available so you need customization. You can edit the pos.xml file and add following tag "<t t-esc='receipt.partner_id.name'/>" anywhere you want it.

  3. As a soft alternative to point 3, just go to your Odoo point of sales settings, and add following code in the footer or header field:

    <!DOCTYPE QWEB>

    <t t-esc='receipt.partner_id.name'/>
    Odoo will interpret the content of the header/footer field and actually print the value of the variables you put in it. Note that it is visible only on printed receipt and not on the screen.

形象
丢弃
最佳答案



Client: receipt.client.name' />


put this code in the header or the photer 

形象
丢弃
最佳答案

Hi @patrick, @Moustapha, I had the same error, did you manage to find a solution?

形象
丢弃
编写者 最佳答案

 Hi     @patrick  

I ve just tried the  3 option  because   it was  the easiest    since im not so good with coding 

but when i did   this  error  accured   


 Uncaught Error: QWeb2 - template['subreceipt']: Runtime Error: TypeError: Cannot read property 'name' of undefined

http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3689 Retraçage : Error: QWeb2 - template['subreceipt']: Runtime Error: TypeError: Cannot read property 'name' of undefined at Object.exception (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3689:7) at Engine.eval (eval at _render (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3731:73), <anonymous>:14:29) at Engine._render (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3730:296) at Engine.render (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3730:151) at Engine._render (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3734:57) at Engine.render (http://45.76.4.68:8069/web/content/311-f08dbe5/web.assets_common.js:3730:151) at render_xml (http://45.76.4.68:8069/web/content/572-8f50de9/point_of_sale.assets.js:196:328) at child.export_for_printing (http://45.76.4.68:8069/web/content/572-8f50de9/point_of_sale.assets.js:198:81) at Class.get_receipt_render_env [as _super] (http://45.76.4.68:8069/web/content/572-8f50de9/point_of_sale.assets.js:379:1110) at Class.get_receipt_render_env (http://45.76.4.68:8069/web/content/572-8f50de9/point_of_sale.assets.js:420:305)
形象
丢弃
最佳答案

there is a template for that. find it and change it however you need.if not possible by default, add some code.

view: report_receipt

形象
丢弃
相关帖文 回复 查看 活动
1
8月 25
764
1
7月 25
990
3
7月 25
3414
3
5月 25
1819
1
7月 25
1189