Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026468Openbravo ERP03. Procurement managementpublic2014-05-06 10:412014-05-06 12:46
gorkaion 
gorkaion 
normaltrivialN/A
closedfixed 
20Gentoo
 
3.0PR14Q3 
gorkaion
Core
No
0026468: Api change: Modify FK on delete clause
The c_orderline_id FK on m_requisition_order table has been changed to include an "on delete cascade" clause. This will cause a change in the application:

Before: Removing a Purchase Order with a related Requisition will fail with a "linked items" error.
After: Removing a Purchase Order with a related Requisition will also try to remove the record in the requisition order table. There is a trigger in this table preventing to delete records of closed requisitions. This means that the automatic deletion will only happen on open requisitions.

Api-check test with the failure:
http://ci.openbravo.com/view/try/job/try-api/198/ [^]
N/A
No tags attached.
Issue History
2014-05-06 10:41gorkaionNew Issue
2014-05-06 10:41gorkaionAssigned To => gorkaion
2014-05-06 10:41gorkaionModules => Core
2014-05-06 10:41gorkaionTriggers an Emergency Pack => No
2014-05-06 10:55dmitry_mezentsevNote Added: 0066834
2014-05-06 11:16hgbotCheckin
2014-05-06 11:16hgbotNote Added: 0066836
2014-05-06 11:16hgbotStatusnew => resolved
2014-05-06 11:16hgbotResolutionopen => fixed
2014-05-06 11:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/api-checks/rev/7335ef336f63d21b8f3cce9d985f1060d6430e2e [^]
2014-05-06 12:46gorkaionReview Assigned To => gorkaion
2014-05-06 12:46gorkaionStatusresolved => closed

Notes
(0066834)
dmitry_mezentsev   
2014-05-06 10:55   
Approved.
(0066836)
hgbot   
2014-05-06 11:16   
Repository: erp/devel/api-checks
Changeset: 7335ef336f63d21b8f3cce9d985f1060d6430e2e
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue May 06 11:16:26 2014 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/7335ef336f63d21b8f3cce9d985f1060d6430e2e [^]

Fixed issue 26468.Modified FK definition.

---
M model/src-db/database/model/tables/M_REQUISITIONORDER.xml
---