-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
into: - product_main_supplier - sale_suggested_price - sale_adapt_price_wizard [REF] split beesdoo_product -> product_main_supplier [FIX] sale_suggested_price dep on product_main_supplier [ADD] module sale_edit_price_wizard [REF] rename sale_edit_price_wizard -> sale_adapt_price_wizard [REF] move rounding_method to sale_suggested_price [REF] refactor following PR 320 [REF] search product_code -> product_main_seller [FIX] bug adapt_sales_price [IMP] use float_compare to compare prices [REF] move list_price_write_date to sale_adapt_price_wizard [FIX] beesdoo_product: main_seller_id search [FIX] run precommit fix
- Loading branch information
1 parent
5b9b568
commit 542d7be
Showing
65 changed files
with
2,365 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import logging | ||
|
||
from openupgradelib import openupgrade | ||
|
||
_logger = logging.getLogger(__name__ + " 12.0.2.0.0") | ||
|
||
|
||
renamed_view_xml_ids = ( | ||
( | ||
"beesdoo_product.beesdoo_product_category_form", | ||
"sale_suggested_price.product_category_form_view", | ||
), | ||
( | ||
"beesdoo_product.product_template_edit_price_tree_view", | ||
"sale_suggested_price.product_template_edit_price_tree_view", | ||
), | ||
( | ||
"beesdoo_product.beesdoo_product_category_list", | ||
"sale_suggested_price.product_category_list_view", | ||
), | ||
( | ||
"beesdoo_product.beesdoo_product_supplierinfo_tree_view", | ||
"sale_suggested_price.product_supplierinfo_tree_view", | ||
), | ||
( | ||
"beesdoo_product.product_template_edit_price_tree_view", | ||
"sale_suggested_price.product_template_edit_price_tree_view", | ||
), | ||
( | ||
"beesdoo_product.beesdoo_product_res_parter_form", | ||
"sale_suggested_price.view_partner_form", | ||
), | ||
( | ||
"beesdoo_product.res_config_settings_view_form", | ||
"sale_suggested_price.res_config_settings_view_form", | ||
), | ||
) | ||
|
||
modules_to_install = [ | ||
"sale_suggested_price", | ||
"product_main_suplier", | ||
] | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
_logger.info("renaming view xml ids") | ||
openupgrade.rename_xmlids(env.cr, renamed_view_xml_ids) | ||
|
||
for module in modules_to_install: | ||
module_ids = env["ir.module.module"].search( | ||
[("name", "=", module), ("state", "=", "uninstalled")] | ||
) | ||
if module_ids: | ||
module_ids.button_install() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
from . import beesdoo_product | ||
from . import res_config_settings |
Oops, something went wrong.