콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1556 화면

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
1973
0
3월 25
1777
0
4월 25
1536
1
2월 25
1639
0
2월 25
1437