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.

32 lines
1.3 KiB

  1. # Copyright 2019 ACSONE SA/NV
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. import logging
  4. from openupgradelib import openupgrade
  5. _logger = logging.getLogger(__name__)
  6. def migrate(cr, version):
  7. xmlids_to_rename = [
  8. ('contract_sale.account_analytic_account_own_salesman',
  9. 'contract_sale.contract_contract_own_salesman'),
  10. ('contract_sale.account_analytic_account_see_all',
  11. 'contract_sale.contract_contract_see_all'),
  12. ('contract_sale.account_analytic_contract_salesman',
  13. 'contract_sale.contract_template_salesman'),
  14. ('contract_sale.account_analytic_contract_sale_manager',
  15. 'contract_sale.contract_template_sale_manager'),
  16. ('contract_sale.account_analytic_invoice_line_saleman',
  17. 'contract_sale.contract_line_saleman'),
  18. ('contract_sale.account_analytic_invoice_line_manager',
  19. 'contract_sale.contract_line_manager'),
  20. ('contract_sale.account_analytic_contract_line_salesman',
  21. 'contract_sale.contract_template_line_salesman'),
  22. ('contract_sale.account_analytic_contract_line_manager',
  23. 'contract_sale.contract_template_line_manager'),
  24. ('contract_sale.account_analytic_account_contract_salesman',
  25. 'contract_sale.contract_contract_salesman'),
  26. ]
  27. openupgrade.rename_xmlids(cr, xmlids_to_rename)