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.

31 lines
1.6 KiB

6 years ago
6 years ago
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 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="res_config_settings_view_form" 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" ref="base_setup.res_config_settings_view_form" />
  9. <field name="arch" type="xml">
  10. <xpath expr="//div[@id='companies']" position='after'>
  11. <h2>Partner Names Order</h2>
  12. <div class="row mt16 o_settings_container" name="partner_names_order">
  13. <div class="col-xs-12 col-md-6 o_setting_box">
  14. <div class="o_setting_right_pane">
  15. <field name="partner_names_order" />
  16. <field name="partner_names_order_changed" invisible="1" />
  17. <button
  18. name="action_recalculate_partners_name"
  19. string="Recalculate names"
  20. icon="fa-play"
  21. type="object"
  22. help="Recalculate names for all partners. This process could take so much time if there are more than 10,000 active partners"
  23. attrs="{'invisible': [('partner_names_order_changed', '=', False)]}"
  24. />
  25. </div>
  26. </div>
  27. </div>
  28. </xpath>
  29. </field>
  30. </record>
  31. </odoo>