Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1120 Visualizações

Hi everyone,

I’m trying to override the Product Info Popup in Odoo 17 POS using a custom module. I followed the standard asset extension method via the __manifest__.py file:

"assets": { 
​"point_of_sale.assets_pos": [ "my_post_test/static/src/xml/product_info_popup.xml", ], 

​}

My product_info_popup.xml inherits point_of_sale.ProductInfoPopup, and I've confirmed the XPath targets are correct. However, no changes appear in the UI, and no errors show in the browser console or logs.

I’ve verified:

  • Folder is correctly mounted (/mnt/extra-addons)
  • Module is installed and updated using --stop-after-init
  • Asset path is accurate
  • Dev mode with ?debug=1 is active

But the popup still loads the default view, ignoring my injected code. Has anyone faced the same issue or knows what might be missing?



Note: I install on localhost using docker for running odoo

Thanks in advance!

Avatar
Cancelar
Melhor resposta

'point_of_sale.assets_pos' doesn't exist in core Odoo 17.

The correct key for these assets is 

point_of_sale._assets_pos

See https://github.com/odoo/odoo/blob/17.0/addons/point_of_sale/__manifest__.py#L81

Also, find an inheritance example here https://github.com/odoo/odoo/blob/17.0/addons/pos_sale_product_configurator/__manifest__.py#L17

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
abr. 25
1558
0
mar. 25
1418
0
abr. 25
1167
1
fev. 25
1280
0
fev. 25
1067