2014-04-04 11:23:08 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<!-- Sale order form -->
|
|
|
|
<record model="ir.ui.view" id="view_order_form_inherit_1">
|
|
|
|
<field name="name">sale.order.form.inherit_1</field>
|
|
|
|
<field name="model">sale.order</field>
|
|
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<data>
|
2014-04-23 14:12:25 +00:00
|
|
|
<xpath expr="//notebook/page/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='product_id']" position="after">
|
|
|
|
<field name="sale_layout_cat_id"/>
|
2014-04-04 11:23:08 +00:00
|
|
|
</xpath>
|
2014-04-23 14:53:13 +00:00
|
|
|
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='product_id']" position="after">
|
|
|
|
<field name="sale_layout_cat_id"/>
|
|
|
|
</xpath>
|
2014-04-04 11:23:08 +00:00
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Invoice form -->
|
|
|
|
<record model="ir.ui.view" id="view_invoice_form_inherit_1">
|
|
|
|
<field name="name">account.invoice.form.inherit_1</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<data>
|
2014-04-23 14:12:25 +00:00
|
|
|
<xpath expr="//page[@string='Invoice Lines']/field[@name='invoice_line']/tree/field[@name='product_id']" position="after">
|
|
|
|
<field name="sale_layout_cat_id"/>
|
|
|
|
</xpath>
|
|
|
|
|
2014-04-04 11:23:08 +00:00
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_invoice_line_form_inherit_2">
|
|
|
|
<field name="name">account.invoice.line.form.inherit_2</field>
|
|
|
|
<field name="model">account.invoice.line</field>
|
|
|
|
<field name="inherit_id" ref="account.view_invoice_line_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<data>
|
2014-04-23 14:12:25 +00:00
|
|
|
<xpath expr="//group/group/field[@name='product_id']" position="after">
|
2014-04-04 11:23:08 +00:00
|
|
|
<field name="sale_layout_cat_id"/>
|
|
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Report condiguration -->
|
|
|
|
<record id="report_configuration_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">report.configuration.form.view</field>
|
|
|
|
<field name="model">sale_layout.category</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Report Configuration">
|
2014-04-04 11:23:08 +00:00
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="subtotal" widget="checkbox"/>
|
|
|
|
<field name="separator" widget="checkbox"/>
|
|
|
|
<field name="pagebreak" widget="checkbox"/>
|
|
|
|
<field name="sequence"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="report_configuration_tree_view" model="ir.ui.view">
|
|
|
|
<field name="name">report.configuration.form.view</field>
|
|
|
|
<field name="model">sale_layout.category</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Report Configuration">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="subtotal" widget="checkbox"/>
|
|
|
|
<field name="separator" widget="checkbox"/>
|
|
|
|
<field name="pagebreak" widget="checkbox"/>
|
|
|
|
<field name="sequence"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="report_configuration_search_view" model="ir.ui.view" >
|
|
|
|
<field name="name">report.configuration.search.view</field>
|
|
|
|
<field name="model">sale_layout.category</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Name">
|
|
|
|
<filter string="Total" domain="[('subtotal','=','True')]"/>
|
|
|
|
<filter string="Separator" domain="[('separator','=','True')]"/>
|
|
|
|
<filter string="Break" domain="[('pagebreak','=','True')]"/>
|
|
|
|
<group string="Group By Name">
|
|
|
|
<filter string="Name" context="{'group_by' : 'name'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id='report_configuration_action' model='ir.actions.act_window'>
|
|
|
|
<field name="name">Report Configuration</field>
|
|
|
|
<field name="res_model">sale_layout.category</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem
|
|
|
|
action="report_configuration_action"
|
|
|
|
id="Report_configuration"
|
|
|
|
parent="base.menu_base_config"
|
|
|
|
sequence="25"
|
|
|
|
name="Report Layout Categories"
|
|
|
|
groups="base.group_sale_manager,base.group_sale_salesman,account.group_account_manager,account.group_account_user"
|
|
|
|
/>
|
|
|
|
</data>
|
|
|
|
</openerp>
|