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.

40 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.actions.act_window"
  4. id="action_mrp_production_agreement_specific">
  5. <field name="name">Manufacture Orders</field>
  6. <field name="type">ir.actions.act_window</field>
  7. <field name="res_model">mrp.production</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="help" type="html">
  12. <p class="oe_view_nocontent_create">
  13. Create MOs
  14. </p>
  15. </field>
  16. </record>
  17. <record id="partner_agreement_form_view" model="ir.ui.view">
  18. <field name="name">agreement.form.mrp</field>
  19. <field name="model">agreement</field>
  20. <field name="inherit_id" ref="agreement.partner_agreement_form_view"/>
  21. <field name="arch" type="xml">
  22. <xpath expr="//div[@name='button_box']" position="inside">
  23. <button name="%(action_mrp_production_agreement_specific)d"
  24. type="action"
  25. class="oe_stat_button" icon="fa-wrench">
  26. <div class="o_field_widget o_stat_info">
  27. <span class="o_stat_value">
  28. <field name="mo_count" widget="statinfo"
  29. nolabel="1"/>
  30. </span>
  31. <span class="o_stat_text">MOs</span>
  32. </div>
  33. </button>
  34. </xpath>
  35. </field>
  36. </record>
  37. </odoo>