Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2768 Lượt xem

Im try to modify PosTicket and I have this code:

mymodule/static/src/xml/pos.xml:

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="PosTicket">
<t t-jquery=".pos-sale-ticket" t-operation="append">
<span>hola</span>
</t>
</t>
</templates>


mymodule/__manifest__.py

{
'name': "mymodule",
'summary': """ Modify PosTicket""",
'author': "Me",
'website': "http://www.myweb.do",
'category': 'Tool',
'version': '0.1',

'depends': ['base','point_of_sale'],
'qweb': [
'static/src/xml/pos.xml',
],
}


But when  I print the ticket, I dont see the changes

If someone can show if I jumped an step or something that I dont see, please help

PD: I'm workin in odoo 11

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Your xml and manifest files seems correct. Check your module structure, or whether it is installed correctly

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 23
1976
2
thg 1 23
2527
1
thg 9 17
6260
1
thg 10 24
1477
1
thg 6 23
8303