Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion addons/mrp/migrations/13.0.2.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
# Copyright 2020 Andrii Skrypka <[email protected]>
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
from openupgradelib import openupgrade, openupgrade_90

_unlink_by_xmlid = [
'mrp.sequence_mrp_unbuild',
]

attachment_fields = {
'mrp.routing.workcenter': [
('worksheet', None),
],
}


def fill_bom_product_template_attribute_value(env):
openupgrade.logged_query(env.cr, """
Expand Down Expand Up @@ -292,3 +298,4 @@ def migrate(env, version):
enable_group_mrp_byproducts(env)
generate_wo_line(env)
fill_planned_datetime(env)
openupgrade_90.convert_binary_field_to_attachment(env, attachment_fields)
3 changes: 3 additions & 0 deletions addons/mrp/migrations/13.0.2.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
'stock_move_line': [
('lot_produced_id', None),
],
'mrp_routing_workcenter': [
('worksheet', None),
],
}

_column_copies = {
Expand Down