Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037982Openbravo ERP06. Material requirement planning (MRP)public2018-02-20 17:442018-03-02 21:18
gorkaion 
markmm82 
immediateminoralways
closedfixed 
5
 
3.0PR18Q2 
dmiguelez
Core
Pre packaging ( pi )
2018-01-22
pi
https://code.openbravo.com/erp/devel/pi/rev/21e9102f2f7d35c80b8c06aa5984cfb761005220 [^]
No
0037982: Not possible to delete Manufacturing Plans
When the tree view of Manufacturing Plan lines was enabled the Node Deletion Policy selected was "Do Not Allow If Has Children"

This policy has broken the ability to delete the Manufacturing Plan header deleting all the lines. It throws the following error:
org.openbravo.base.exception.OBException: You cannot delete this node because it has children nodes associated

Changing the policy to "Reparent Child Nodes" fixes the issue and the plan is deleted.

The ability to delete the header is required as this window usually generates thousands of lines.
Configure and execute a Manufacturing Plan.
Try to delete it.
Ideally implement a new deletion policy: "Delete Child Nodes" and use it.

At short term: change the Node Deletion Policy to "Reparent Child Nodes"
No tags attached.
caused by design defect 0037642 closed nonofrancisco Enable tree view in MRP Manufacturing Plan window 
Issue History
2018-02-20 17:44gorkaionNew Issue
2018-02-20 17:44gorkaionAssigned To => Triage Finance
2018-02-20 17:44gorkaionModules => Core
2018-02-20 17:44gorkaionRegression level => Pre packaging ( pi )
2018-02-20 17:44gorkaionRegression date => 2018-01-22
2018-02-20 17:44gorkaionRegression introduced in release => pi
2018-02-20 17:44gorkaionRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/21e9102f2f7d35c80b8c06aa5984cfb761005220 [^]
2018-02-20 17:44gorkaionTriggers an Emergency Pack => No
2018-02-20 17:44gorkaionIssue generated from0037642
2018-02-20 17:44gorkaionRelationship addedcaused by 0037642
2018-02-20 17:48gorkaionResolution time => 1520895600
2018-02-20 17:48gorkaionPriorityhigh => immediate
2018-02-21 11:54dmiguelezAssigned ToTriage Finance => markmm82
2018-02-21 15:04markmm82Statusnew => scheduled
2018-02-21 16:10markmm82Note Added: 0102559
2018-02-22 10:20PracticsIssue Monitored: Practics
2018-02-22 12:57hgbotCheckin
2018-02-22 12:57hgbotNote Added: 0102597
2018-02-22 12:57hgbotStatusscheduled => resolved
2018-02-22 12:57hgbotResolutionopen => fixed
2018-02-22 12:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a959a97929c7acdee072484147b77eb1996ba8fe [^]
2018-02-22 13:03dmiguelezReview Assigned To => dmiguelez
2018-02-22 13:03dmiguelezNote Added: 0102598
2018-02-22 13:03dmiguelezStatusresolved => closed
2018-02-22 13:03dmiguelezFixed in Version => 3.0PR18Q2
2018-03-02 21:18hudsonbotCheckin
2018-03-02 21:18hudsonbotNote Added: 0102945

Notes
(0102559)
markmm82   
2018-02-21 16:10   
Test Plan

As F&B International Group Admin
  * Create a new Product
    Organization "F&B España Region Norte"
    Search key: "RM"
    Name: "Raw Material"
    Production: true
  * Create a new Product
      Organization "F&B España Region Norte"
      Search key: "Final"
      Name: "Final Product"
      Production: true

  * Create a new Manufacturing Plan
      Organization "F&B España Region Norte"
      Name: "MP"
      * Verify Lines tab is showing in grid view
      * Create a new line
        Planned date: today
        Product: "Final"
      * Create a new line
        Planned date: today
        Product: "Raw Material"
        Report set: "MP - - Final - Final - -"
      * Activate tree view for Lines tab

  Verify the lines are shown in tree view, the root node of the tree is the line containing "Final" product; the leaf node is the line containing "Raw Material" product.

   * Delete the created Manufacturing Plan. Notice header and all the lines are removed without any error.
(0102597)
hgbot   
2018-02-22 12:57   
Repository: erp/devel/pi
Changeset: a959a97929c7acdee072484147b77eb1996ba8fe
Author: Mark <markmm82 <at> gmail.com>
Date: Wed Feb 21 10:20:19 2018 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/a959a97929c7acdee072484147b77eb1996ba8fe [^]

Fixes issue 37982: Not possible to delete Manufacturing Plans

Changed the policy to "Reparent Child Nodes" in the Table Tree Category to be able
to delete a Manufactoring plan and it lines without need to do by a line by line
process

---
M src-db/database/sourcedata/AD_TABLE_TREE.xml
---
(0102598)
dmiguelez   
2018-02-22 13:03   
Code Review + Testing Ok
(0102945)
hudsonbot   
2018-03-02 21:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/05dece3dc80b [^]
Maturity status: Test