76 lines
3.4 KiB
XML
76 lines
3.4 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<openerp>
|
||
|
<data>
|
||
|
|
||
|
<wizard id="action_open_margin" menu="False" model="product.product" name="product.margin" string="Product Margin"/>
|
||
|
|
||
|
<menuitem id="menu_product_reporting" name="Reporting" parent ="product.menu_main_product" />
|
||
|
|
||
|
<menuitem icon="STOCK_JUSTIFY_FILL" action="action_open_margin" id="menu_action_product_margin" type="wizard" sequence="5" parent="menu_product_reporting" />
|
||
|
|
||
|
<record id="view_product_margin_form" model="ir.ui.view">
|
||
|
<field name="name">product.margin.form.inherit</field>
|
||
|
<field name="model">product.product</field>
|
||
|
<field name="type">form</field>
|
||
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
||
|
<field name="priority">10</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<page string="Prices" position="after">
|
||
|
<page string="Margin">
|
||
|
<separator string="Analysis Criteria" colspan="4"/>
|
||
|
<field name="date_from"/>
|
||
|
<field name="date_to"/>
|
||
|
<newline/>
|
||
|
<field name="invoice_state" />
|
||
|
|
||
|
<separator string="Sales" colspan="4"/>
|
||
|
<field name="sale_avg_price"/>
|
||
|
<field name="list_price" string="Catalog Price" readonly="1"/>
|
||
|
<field name="sale_num_invoiced" />
|
||
|
<field name="sales_gap" />
|
||
|
<field name="turnover" />
|
||
|
<field name="sale_expected" />
|
||
|
|
||
|
<separator string="Purchases" colspan="4"/>
|
||
|
<field name="purchase_avg_price"/>
|
||
|
<field name="standard_price" string="Standard Price" readonly="1"/>
|
||
|
<field name="purchase_num_invoiced" />
|
||
|
<field name="purchase_gap" />
|
||
|
<field name="total_cost" />
|
||
|
<field name="normal_cost" />
|
||
|
|
||
|
<separator string="Margins" colspan="4"/>
|
||
|
<field name="total_margin"/>
|
||
|
<field name="expected_margin"/>
|
||
|
<field name="total_margin_rate" widget="progressbar"/>
|
||
|
<field name="expected_margin_rate" widget="progressbar"/>
|
||
|
|
||
|
</page>
|
||
|
</page>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="view_product_margin_tree" model="ir.ui.view">
|
||
|
<field name="name">product.margin.tree</field>
|
||
|
<field name="model">product.product</field>
|
||
|
<field name="type">tree</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<tree string="Product Margin">
|
||
|
<field name="name" select="1"/>
|
||
|
<field name="default_code" select="1"/>
|
||
|
<field name="sale_avg_price"/>
|
||
|
<field name="sale_num_invoiced"/>
|
||
|
<field name="turnover"/>
|
||
|
<field name="sales_gap"/>
|
||
|
<field name="total_cost"/>
|
||
|
<field name="purchase_num_invoiced" string="#Purchased"/>
|
||
|
<field name="total_margin"/>
|
||
|
<field name="expected_margin"/>
|
||
|
<field name="total_margin_rate" widget="progressbar"/>
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
</data>
|
||
|
</openerp>
|