Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7336 Visualizzazioni

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
Abbandona

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

Risposta migliore

I think you are looking for partner, not client:

Example:

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

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

Post correlati Risposte Visualizzazioni Attività
3
gen 25
5607
0
ott 24
1198
1
set 24
2112
0
lug 23
2025
2
lug 23
7537