commission_wizard.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="project_service_commission_wizard_view">
  5. <field name="name">project.service.commission.wizard.form</field>
  6. <field name="model">project.service.commission.wizard</field>
  7. <field name="arch" type="xml">
  8. <form string="Commission">
  9. <group>
  10. <group>
  11. <field name='task_id' string="Tarea" invisible="1"/>
  12. <field name='activity_id' string="Tarea"/>
  13. </group>
  14. <group>
  15. <field name='user_id' string="Funcionario"/>
  16. <field name='amount' string="Valor de la comisión"/>
  17. </group>
  18. </group>
  19. <footer>
  20. <button name="add_commision" type="object" class="oe_highlight" string="Aceptar"/>
  21. </footer>
  22. </form>
  23. </field>
  24. </record>
  25. <record model="ir.actions.act_window" id="action_commision_add">
  26. <field name="name">Asignar comisión</field>
  27. <field name="res_model">project.service.commission.wizard</field>
  28. <field name="view_type">form</field>
  29. <field name="view_mode">form</field>
  30. <field name="target">new</field>
  31. </record>
  32. </data>
  33. </openerp>