تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7378 أدوات العرض

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

الصورة الرمزية
إهمال

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

أفضل إجابة

I think you are looking for partner, not client:

Example:

Beschreibung: <t t-esc="widget.pos.partner.name"/>
الصورة الرمزية
إهمال

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 25
5753
0
أكتوبر 24
1366
1
سبتمبر 24
2160
0
يوليو 23
2076
2
يوليو 23
7673