Is there a way to replace fa fa-user with the customer image in point of sale?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Projeto
- MRP
Esta pergunta foi sinalizada
1
Responder
2642
Visualizações
Hi,
First extend Actionpad widget template(pos.xml) and replace class “set-customer”
<button t-attf-class='button set-customer #{ ( widget.pos.get_client() and widget.pos.get_client().name.length > 10) ? "decentered" : "" }' >
<t t-if="widget.pos.get_client()">
<img t-att-src='widget.partner_icon_url(widget.pos.get_client().id)' style="height: 80% !important;" />
<t t-esc="widget.pos.get_client().name" />
</t>
<t t-if="!widget.pos.get_client()">
<i class='fa fa-user' />
Customer
</t>
</button>
Extend Actionpad widget with a new function (screen.js)
partner_icon_url: function(id){
return '/web/image?model=res.partner&id='+id+'&field=image_small';
},Thanks
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
2
jul. 25
|
6661 | ||
|
|
2
out. 25
|
8901 | ||
|
How to ORDER BY? [Odoo 10]
Resolvido
|
|
2
nov. 24
|
29831 | |
|
|
2
mai. 24
|
8463 | ||
|
|
3
mar. 24
|
7901 |