123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="sale_commission_tree">
- <field name="name">Sales commissions tree</field>
- <field name="model">sale.commission</field>
- <field name="arch" type="xml">
- <tree string="Commissions">
- <field name="name" />
- <field name="commission_type" />
- <field name="amount_base_type" />
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="sale_commission_form">
- <field name="name">Sales commissions form</field>
- <field name="model">sale.commission</field>
- <field name="arch" type="xml">
- <form string="Commission">
- <group string="General information">
- <group>
- <field name="name" />
- <field name="active" />
- <field name="company_id" />
- </group>
- <group>
- <field name="commission_type" />
- <field name="amount_base_type" />
- <field name="invoice_state"/>
- </group>
- </group>
- <group string="Rates definition" colspan="4">
- <field name="fix_qty"
- attrs="{'invisible': [('commission_type', '!=', 'fixed')], 'required': [('commission_type', '=', 'fixed')]}" />
- </group>
- </form>
- </field>
- </record>
- <record model="ir.actions.act_window" id="action_commission">
- <field name="name">Commission types</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">sale.commission</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem name="Commissions"
- id="menu_sale_commissions_conf"
- parent="base.menu_base_config" />
- <menuitem name="Commission types"
- id="menu_sale_commissions_types"
- parent="menu_sale_commissions_conf"
- action="action_commission" />
- </data>
- </openerp>
|