Skip to content

Commit

Permalink
[13.0][MIG] sale_expense
Browse files Browse the repository at this point in the history
  • Loading branch information
bishalgit committed Feb 4, 2021
1 parent 33ef578 commit b28cd71
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---Models in module 'sale_expense'---
---Fields in module 'sale_expense'---

---XML records in module 'sale_expense'---
DEL ir.model.access: sale_expense.access_sale_order_employee
# NOTHING TO DO: removed from manifest

DEL ir.rule: sale_expense.sale_order_rule_expense_user (noupdate)
# DONE: post-migration: try to delete

NEW ir.ui.view: sale_expense.assets_backend
NEW ir.ui.view: sale_expense.hr_expense_form_view_inherit_account_manager
NEW ir.ui.view: sale_expense.hr_expense_form_view_inherit_saleman
NEW ir.ui.view: sale_expense.qunit_suite
# NOTHING TO DO: new xmls

DEL product.product: hr_expense.product_product_fixed_cost (noupdate)
# DONE: post-migration: try to delete
13 changes: 13 additions & 0 deletions addons/sale_expense/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021 Bloopark - Bishal Pun
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env, [
"sale_expense.sale_order_rule_expense_user",
"hr_expense.product_product_fixed_cost",
]
)
2 changes: 1 addition & 1 deletion odoo/openupgrade/doc/source/modules120-130.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ missing in the new release are marked with |del|.
+----------------------------------------------+-------------------------------------------------+
|sale_crm | Nothing to do |
+----------------------------------------------+-------------------------------------------------+
|sale_expense | |
|sale_expense | Done |
+----------------------------------------------+-------------------------------------------------+
|sale_management | Nothing to do |
+----------------------------------------------+-------------------------------------------------+
Expand Down

0 comments on commit b28cd71

Please sign in to comment.