Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7361 Zobrazení

How to add a new field in POS CUSTOMER VIEW?

I can't get the customer in the pos.xml file:

Phone: <t t-esc="widget.pos.company.phone || ''"/><br />

User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />

Shop: <t t-esc="widget.pos.shop.name"/><br />

Beschreibung: <t t-esc="widget.pos.client.name"/> <--- This is not working why??

Avatar
Zrušit

On the odoo12

Shop: <t t-esc="widget.pos.shop.name"/><br /> <--- This is not working why?-->

Shop: <span t-field="pos.shop.name" /> <--- This is not working why?-->

I think in http://localhost:8069/pos/web/#action=pos.ui interface, display the shop name, but an error, you can show that, on the odoo12

Nejlepší odpověď

I think you are looking for partner, not client:

Example:

Beschreibung: <t t-esc="widget.pos.partner.name"/>
Avatar
Zrušit

On the odoo12

Shop: <t t-esc="widget.pos.shop.name"/><br /> <--- This is not working why?-->

Shop: <span t-field="pos.shop.name" /> <--- This is not working why?-->

I think in http://localhost:8069/pos/web/#action=pos.ui interface, display the shop name, but an error, you can show that, on the odoo12

Related Posts Odpovědi Zobrazení Aktivita
3
led 25
5684
0
říj 24
1317
1
zář 24
2150
0
čvc 23
2048
2
čvc 23
7608