Skip to content

Commit

Permalink
[OU-ADD] purchase_requisition: safety remove no update xml record
Browse files Browse the repository at this point in the history
  • Loading branch information
SonCrits committed Jul 8, 2023
1 parent 928d776 commit 4c49f9f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_product_matrix | |No DB layout changes. |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_requisition | | |
| purchase_requisition |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_requisition_stock | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env,
["purchase_requisition.seq_purchase_tender", "purchase_requisition.type_multi"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---Models in module 'purchase_requisition'---
new model purchase.order.group
new model purchase.requisition.alternative.warning [transient]
new model purchase.requisition.create.alternative [transient]
# NOTHING TO DO

---Fields in module 'purchase_requisition'---
purchase_requisition / product.template / purchase_requisition (selection): DEL selection_keys: ['rfq', 'tenders']
purchase_requisition / purchase.order / purchase_group_id (many2one) : NEW relation: purchase.order.group
purchase_requisition / purchase.order.group / order_ids (one2many) : NEW relation: purchase.order
# NOTHING TO DO

purchase_requisition / purchase.requisition.line / account_analytic_id (many2one): DEL relation: account.analytic.account
purchase_requisition / purchase.requisition.line / analytic_distribution (json) : NEW hasdefault: compute
purchase_requisition / purchase.requisition.line / analytic_distribution_search (json): NEW
purchase_requisition / purchase.requisition.line / analytic_precision (integer) : NEW hasdefault: default
# DONE pre-migration. use _dynamic_fast_fill_analytic_distribution_when_inherit_analytic_mixin of PR https://github.com/OCA/OpenUpgrade/pull/4070

purchase_requisition / purchase.requisition.line / analytic_tag_ids (many2many) : DEL relation: account.analytic.tag
# NOTHING TO DO

---XML records in module 'purchase_requisition'---
DEL ir.actions.act_window: purchase_requisition.tender_type_action
NEW ir.model.access: purchase_requisition.access_purchase_requisition_alternative_warning
NEW ir.model.access: purchase_requisition.access_purchase_requisition_create_alternative
NEW ir.model.access: purchase_requisition.access_purchase_requisition_purchase_order_group
# NOTHING TO DO

DEL ir.sequence: purchase_requisition.seq_purchase_tender (noupdate)
# DONE: post-migration: remove safety noupdate xml record

DEL ir.ui.menu: purchase_requisition.menu_purchase_requisition_type
NEW ir.ui.view: purchase_requisition.purchase_order_kpis_tree_inherit_purchase_requisition
NEW ir.ui.view: purchase_requisition.purchase_order_line_compare_tree
NEW ir.ui.view: purchase_requisition.purchase_order_tree_inherit_purchase_requisition
NEW ir.ui.view: purchase_requisition.purchase_requisition_alternative_warning_form
NEW ir.ui.view: purchase_requisition.purchase_requisition_create_alternative_form
DEL ir.ui.view: purchase_requisition.product_template_form_view_inherit
DEL ir.ui.view: purchase_requisition.res_config_settings_view_form
# NOTHING TO DO

DEL purchase.requisition.type: purchase_requisition.type_multi (noupdate)
# DONE: post-migration: remove safety noupdate xml record

0 comments on commit 4c49f9f

Please sign in to comment.