commission_by_seller.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="salesman_commission_tree_view" model="ir.ui.view">
  5. <field name="name">salesman_commission_tree_view</field>
  6. <field name="model">salesman.commission</field>
  7. <field name="arch" type="xml">
  8. <tree string="salesman_commission" editable="botom">
  9. <field name="sale_type" required="1"/>
  10. <field name="sale_commission" required="1"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <record model="ir.actions.act_window" id="action_salesman_commission">
  15. <field name="name">Comisión por tipo de venta</field>
  16. <field name="res_model">salesman.commission</field>
  17. <field name="view_type">form</field>
  18. <field name="view_mode">tree</field>
  19. </record>
  20. <menuitem name="Comisiones" parent="account.menu_finance" id="commission_parent_menu" sequence="5"/>
  21. <menuitem name="Establecer Comisión" parent="commission_parent_menu" id="commission_submenu2" action="action_salesman_commission"/>
  22. </data>
  23. </openerp>