Could anybody tell me how to edit the qweb templat for the purchase order with a custom modul. I already tried it, but it doesent work and no error is given. If I add an id to the template it even shows under the associated QWeb views of Purchase Order.
__openerp__.py
{
'name': 'report test',
'version': '1.0',
'category': 'test',
'summary': 'test',
'description': """
test
""",
'author': 'test',
'website': 'test',
'depends': ['sales_team','account_voucher', 'procurement', 'report'],
'data': [
'views/report_purchase_extend.xml',
],
'demo': [],
'installable': True,
'auto_install': False,
'application': True,
}
views/report_purchase_extend.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template>
<tr t-extend="purchase.report_purchaseorder">
<t t-jquery="div.page" t-operation="replace">
<t t-foreach="docs" t-as="o"/>
<div class ="page">
</div>
</t>
</tr>
</template>
</data>
</openerp>
and an empty __init__.py file.
I have the same problem. No install error but nothing changes in template. Take a look to my post too, because maybe someone could give us a solution there. https://www.odoo.com/forum/Help-1/question/Inherit-Qweb-54163