Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 62 additions & 48 deletions product_status/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,79 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml">
<group name="sale" position="inside">
<group name="product_status_wrapper">
<notebook position="inside">
<page name="product_status" string="Product Status">
<group name="product_status" string="Product Status">
<field name="new_until" />
<field name="discontinued_until" />
<field name="end_of_life_date" />
<field name="state" />
<group>
<field name="new_until" />
<field name="discontinued_until" />
<field name="end_of_life_date" />
<field name="state" />
</group>
<group>
<div class="alert alert-info" role="alert" colspan="2">
By order of importance, the status is computed by:<br />
<ul>
<li>End-of-life</li>
<li>Discontinued until</li>
<li>New until</li>
</ul>
<strong
>End-of-life</strong> has priority over the other dates.<br
/>
<strong
>Discontinued-until</strong> has priority over <strong
>New until</strong>.
</div>
</group>
</group>
<div class="alert alert-info" role="alert" colspan="2">
By order of importance, the status is computed by:<br />
<ul>
<li>End-of-life</li>
<li>Discontinued until</li>
<li>New until</li>
</ul>
<strong>End-of-life</strong> has priority over the other dates.<br />
<strong>Discontinued-until</strong> has priority over <strong
>New until</strong>.
</div>
</group>
</group>
</page>
</notebook>
</field>
</record>

<record id="product_normal_form_view" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="sale" position="inside">
<group name="product_status_wrapper">
<notebook position="inside">
<page name="product_status" string="Product Status">
<group name="product_status" string="Product Status">
<field name="has_status_date" invisible="1" />
<field name="new_until" />
<field name="discontinued_until" />
<field name="end_of_life_date" />
<field name="tmpl_new_until" invisible="has_status_date" />
<field
name="tmpl_discontinued_until"
invisible="has_status_date"
/>
<field
name="tmpl_end_of_life_date"
invisible="has_status_date"
/>
<field name="state" />
<group>
<field name="has_status_date" invisible="1" />
<field name="new_until" />
<field name="discontinued_until" />
<field name="end_of_life_date" />
<field name="tmpl_new_until" invisible="has_status_date" />
<field
name="tmpl_discontinued_until"
invisible="has_status_date"
/>
<field
name="tmpl_end_of_life_date"
invisible="has_status_date"
/>
<field name="state" />
</group>
<group>
<div class="alert alert-info" role="alert" colspan="2">
By order of importance, the status is computed by:<br />
<ul>
<li>End-of-life</li>
<li>Discontinued until</li>
<li>New until</li>
</ul>
<strong
>End-of-life</strong> has priority over the other dates.<br
/>
<strong
>Discontinued-until</strong> has priority over <strong
>New until</strong>.
</div>
</group>
</group>
<div class="alert alert-info" role="alert" colspan="2">
By order of importance, the status is computed by:<br />
<ul>
<li>End-of-life</li>
<li>Discontinued until</li>
<li>New until</li>
</ul>
<strong>End-of-life</strong> has priority over the other dates.<br />
<strong>Discontinued-until</strong> has priority over <strong
>New until</strong>.
</div>
</group>
</group>
</page>
</notebook>
</field>
</record>

Expand Down