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

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
Abbandona
Risposta migliore

'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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
apr 25
998
0
mar 25
875
0
apr 25
603
1
feb 25
984
0
feb 25
788