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.

34 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2015 Antiun Ingenieria S.L. - Antonio Espinosa
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  4. <odoo>
  5. <record id="view_general_configuration" model="ir.ui.view">
  6. <field name="name">Add partner_names_order config parameter</field>
  7. <field name="model">res.config.settings</field>
  8. <field name="inherit_id"
  9. ref="base_setup.res_config_settings_view_form"/>
  10. <field name="arch" type="xml">
  11. <xpath expr="//div[@name='multi_company']" position='after'>
  12. <h2>Partner names order</h2>
  13. <div class="row mt16 o_settings_container"
  14. name="partner_names_order">
  15. <div class="col-xs-12 col-md-6 o_setting_box">
  16. <div class="o_setting_right_pane">
  17. <field name="partner_names_order"/>
  18. <field name="partner_names_order_changed"
  19. invisible="1"/>
  20. <button name="action_recalculate_partners_name"
  21. string="Recalculate names"
  22. icon="fa-play"
  23. type="object"
  24. help="Recalculate names for all partners. This process could take so much time if there are more than 10,000 active partners"
  25. attrs="{'invisible': [('partner_names_order_changed', '=', False)]}"/>
  26. </div>
  27. </div>
  28. </div>
  29. </xpath>
  30. </field>
  31. </record>
  32. </odoo>