跳至內容
選單
此問題已被標幟
1 回覆
478 瀏覽次數

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!

頭像
捨棄
最佳答案

'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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 25
992
0
3月 25
873
0
4月 25
602
1
2月 25
971
0
2月 25
779