Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5507 มุมมอง

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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 15
4595
0
ธ.ค. 22
1859
0
ต.ค. 17
3127
0
ก.ค. 16
3711
1
ก.พ. 16
9438