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 can i add graph view to existing action ???

By
yasmina
on 7/14/16, 5:21 AM 288 views

i want to add graph view to the model 'stock.production.lot'. how can i do this?


2
Nikunj Antala
On 7/14/16, 6:36 AM

Hello yasmina,

For change action of any module you need to override that action.

Example:


<record id="stock.action_production_lot_form" model="ir.actions.act_window">

    <field name="name">Serial Numbers</field>

    <field name="type">ir.actions.act_window</field>

     <field name="res_model">stock.production.lot</field>

     <field name="view_type">form</field>

     <field name="view_mode">tree,form,graph</field>

     <field name="view_id" ref="view_production_lot_tree"/>

     <field name="search_view_id" ref="search_product_lot_filter"/>

     <field name="context">{}</field>

     <field name="help" type="html">

         <p class="oe_view_nocontent_create">

         Click to add a serial number.

         </p><p>

         This is the list of all the production lots you recorded. When

         you select a lot, you can get the traceability of the products contained in lot.

     </p>

    </field>

</record>


Hope this helps.

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: 7/14/16, 5:21 AM
Seen: 288 times
Last updated: 7/17/16, 5:07 AM