mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 01:12:04 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
55
odoo-bringout-oca-ddmrp-ddmrp/ddmrp/views/product_view.xml
Normal file
55
odoo-bringout-oca-ddmrp-ddmrp/ddmrp/views/product_view.xml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="product_normal_form_view_inherit" model="ir.ui.view">
|
||||
<field name="name">product.product.form.inherit</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="product.product_normal_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//div[@name='button_box']/button[@name='action_view_mrp_area_parameters']"
|
||||
position="after"
|
||||
>
|
||||
<button
|
||||
type="object"
|
||||
name="action_view_stock_buffers"
|
||||
class="oe_stat_button"
|
||||
icon="fa-flask"
|
||||
attrs="{'invisible': [('buffer_count', '=', 0)]}"
|
||||
>
|
||||
<field
|
||||
name="buffer_count"
|
||||
widget="statinfo"
|
||||
string="Stock Buffers"
|
||||
/>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_only_form_view_inherit" model="ir.ui.view">
|
||||
<field name="name">product.template.product.form.inherit</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_only_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//div[@name='button_box']/button[@name='action_view_mrp_area_parameters']"
|
||||
position="after"
|
||||
>
|
||||
<button
|
||||
type="object"
|
||||
name="action_view_stock_buffers"
|
||||
class="oe_stat_button"
|
||||
icon="fa-flask"
|
||||
attrs="{'invisible': [('buffer_count', '=', 0)]}"
|
||||
>
|
||||
<field
|
||||
name="buffer_count"
|
||||
widget="statinfo"
|
||||
string="Stock Buffers"
|
||||
/>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue