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

Custom view using qweb in openerp 7

By
Zadeek
on 6/22/15, 2:30 AM 537 views

hi all,

i am trying to create a view to summarise the orderlines of a sale order according to analytic account

i have created a basic template in qweb

<templates>
<t t-name="web_example.action">
<t t-set="_id" t-value="_.uniqueId('export')"/>
<formclass="oe_import">
<div
<div >
<h2>
Order Summary
</h2>
<input type="hidden" name="session_id"
t-att-value="widget.session.session_id"/>

                <div>
             </div>
         </form>
</t>
</templates>

the javascript code is minmal

openerp.web_example = function (instance) {
instance.web.client_actions.add('example.action', 'instance.web_example.Action');
};

i dont know how to get data from the orderline in to web template can anyone help, i am unable to find a reference to this in tutorials for openerp 7.

i am really on a dead line, please help



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: 6/22/15, 2:30 AM
Seen: 537 times
Last updated: 6/22/15, 2:30 AM