Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017359Openbravo ERPA. Platformpublic2011-05-25 17:392011-05-26 16:19
rgoris 
mtaal 
urgentmajorhave not tried
closedfixed 
5
 
3.0MP0 
Core
No
0017359: Cloned records have missing values
CLoning a record, creates a new (duplicate) record of the original one. It is logical that not all field values can be copied, so they need to be entered by the user OR they need to be filled in with new values automatically.

There are two issues:
(1) default values
An example is cloning a sales order. The order date and scheduled delivery date of the original are obviously not re-usable. In the current implementation these fields are left empty in the clone. I think this is not good, it is more logical to fill these dates with today´s date, just as you get when creating a new sales order.
(2) save behavior
The clone record seems to be saved the moment it was created. This is odd because there are missing field values. Even when the form view is closed, the record in grid view seems "valid" but in fact it is not as required values are missing.
Either provide default values in the clone for required fields, or do not make the clone record appear as being saved.
No tags attached.
png CloneField.png (152,443) 2011-05-25 17:39
https://issues.openbravo.com/file_download.php?file_id=4107&type=bug
png
Issue History
2011-05-25 17:39rgorisNew Issue
2011-05-25 17:39rgorisAssigned To => alostale
2011-05-25 17:39rgorisFile Added: CloneField.png
2011-05-25 17:39rgorisModules => Core
2011-05-25 17:42alostaleStatusnew => scheduled
2011-05-25 17:42alostaleAssigned Toalostale => mtaal
2011-05-25 17:42alostalefix_in_branch => pi
2011-05-25 18:05mtaalNote Added: 0037451
2011-05-25 18:07hgbotCheckin
2011-05-25 18:07hgbotNote Added: 0037452
2011-05-25 18:07hgbotStatusscheduled => resolved
2011-05-25 18:07hgbotResolutionopen => fixed
2011-05-25 18:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ba368757d42013e2705dac7b0907b6a0390d3e5c [^]
2011-05-26 07:47hudsonbotCheckin
2011-05-26 07:47hudsonbotNote Added: 0037563
2011-05-26 16:19rgorisStatusresolved => closed

Notes
(0037451)
mtaal   
2011-05-25 18:05   
This is another bug, the dates are also copied but not shown.

It makes sense to save the record on the server as also the order lines are copied (that's why this clone order is so usefull).

To clone without saving we should support a shallow copy, this is a separate feature. You can enter a separate feature request for it.
(0037452)
hgbot   
2011-05-25 18:07   
Repository: erp/devel/pi
Changeset: ba368757d42013e2705dac7b0907b6a0390d3e5c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed May 25 18:06:38 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ba368757d42013e2705dac7b0907b6a0390d3e5c [^]

Fixes issue 17359: Cloned records have missing values

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-clone-order.js
---
(0037563)
hudsonbot   
2011-05-26 07:47   
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/728387046be6 [^]

Maturity status: Test