Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7528 Lượt xem

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??

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

I think you are looking for partner, not client:

Example:

Beschreibung: <t t-esc="widget.pos.partner.name"/>
Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
394
3
thg 1 25
6535
0
thg 10 24
1808
1
thg 9 24
2492
0
thg 7 23
2468