Odoo Help

Welcome!

This community 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.

0

How to inherit Qweb template?

By
Jo
on 9/25/15, 7:22 AM 765 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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