Odoo Help

0

How to inherit Qweb template?

By
Jo
on 9/25/15, 7:22 AM 1,385 views

Hi all,

i want inherit Qweb template in my custom module,

here is my __openerp__.py

{
'name': "Custom Warehouse",
'author': "Jothimani R",
'category': 'custom',
'description': "This module is used for filtering the stock.pack.operation lines based on relevent partner",
'summery': ''' ''',
'depends': ['stock'],
'installable': True,
'website': True,
'qweb': ['static/src/xml/picking.xml'],
}


and my Qweb picking.xml is

<templates id="template" xml:space="preserve">
     <t t-extend="stock.PickingEditorWidget">
         <t t-jquery=".form-control .oe_searchbox" t-operation="replace">
             <div><input type="text" name="jo" value="jothimani"/></div>
         </t>
     </t>
</templates>


but not showing my new field. please give me suggestion

thanks in advance       

just make one line change t-jquery="input.oe_searchbox" instead of t-jquery=".form_control .oe_searchbox" .

Emipro Technologies Pvt. Ltd.
on 9/25/15, 8:52 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/25/15, 7:22 AM
Seen: 1385 times
Last updated: 9/25/15, 11:11 AM