mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
fixup! [FIX][mrp_production_request] date_planned field should be named date_planned_start
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
3025fda6ad
commit
651f5fd1c3
@@ -6,7 +6,7 @@
|
||||
"summary": "Allows you to use Manufacturing Request as a previous "
|
||||
"step to Manufacturing Orders for better manufacture "
|
||||
"planification.",
|
||||
"version": "10.0.1.0.1",
|
||||
"version": "10.0.1.1.0",
|
||||
"category": "Manufacturing",
|
||||
"website": "https://github.com/OCA/manufacture",
|
||||
"author": "Eficent,"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2018 Simone Rubino - Agile Business Group
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
field_renames = [
|
||||
('mrp.production.request', 'mrp_production_request', 'date_planned',
|
||||
'date_planned_start')
|
||||
]
|
||||
|
||||
|
||||
@openupgrade.migrate(use_env=True)
|
||||
def migrate(env, version):
|
||||
openupgrade.rename_fields(env, field_renames)
|
||||
@@ -96,6 +96,10 @@ class MrpProductionRequestCreateMo(models.TransientModel):
|
||||
'picking_type_id': request_id.picking_type_id.id,
|
||||
'routing_id': request_id.routing_id.id,
|
||||
'date_planned_start': request_id.date_planned_start,
|
||||
'date_planned_finished': request_id.date_planned_finished,
|
||||
'procurement_group_id': request_id.procurement_group_id.id,
|
||||
'procurement_ids': [(6, 0, request_id.procurement_ids.ids)],
|
||||
'propagate': request_id.propagate,
|
||||
'company_id': request_id.company_id.id,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user