i want to add graph view to the model 'stock.production.lot'. how can i do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
May 15
|
3896 | ||
|
0
Dec 22
|
926 | ||
|
0
Oct 17
|
2486 | ||
|
0
Jul 16
|
3227 | ||
|
1
Feb 16
|
8493 |