You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="action_mrp_repair_agreement_specific"
  4. model="ir.actions.act_window">
  5. <field name="name">Repair Orders</field>
  6. <field name="type">ir.actions.act_window</field>
  7. <field name="res_model">repair.order</field>
  8. <field name="view_type">form</field>
  9. <field name="view_mode">tree,form</field>
  10. <field name="domain">[('agreement_id', '=', active_id)]</field>
  11. <field name="context">{'create': False, 'edit': False}</field>
  12. <field name="help" type="html">
  13. <p class="oe_view_nocontent_create">
  14. Create Repair Orders
  15. </p>
  16. </field>
  17. </record>
  18. <record id="partner_agreement_form_view_repair" model="ir.ui.view">
  19. <field name="name">agreement.form.repair</field>
  20. <field name="model">agreement</field>
  21. <field name="inherit_id"
  22. ref="agreement_legal.partner_agreement_form_view"/>
  23. <field name="arch" type="xml">
  24. <xpath expr="//div[@name='button_box']" position="inside">
  25. <button name="%(action_mrp_repair_agreement_specific)d"
  26. type="action"
  27. class="oe_stat_button" icon="fa-wrench">
  28. <div class="o_field_widget o_stat_info">
  29. <span class="o_stat_value">
  30. <field name="repair_count" widget="statinfo"
  31. nolabel="1"/>
  32. </span>
  33. <span class="o_stat_text">Repair Orders</span>
  34. </div>
  35. </button>
  36. </xpath>
  37. </field>
  38. </record>
  39. </odoo>