[Erp5-dev] SaleOrder_applySaleTradeCondition - is coping ok?

Jérôme Perrin jerome at nexedi.com
Tue Mar 13 19:27:21 CET 2007


Le Mardi 13 Mars 2007 09:16, Łukasz Nowak a écrit :
> But I was instructed to not to allow copy&move for ordinary users

You can allow copy or move on a module when you know that copy & paste of 
documents in the module have no side effects (it have side effects, for 
example, if you copy a reference that is supposed to be generated when the 
document is validated, or if you copy a relation to another object on which 
related documents is important -remember all properties are blindly copied).

Anyway, you just have to identify those side effects, and to fix them (if any) 
in a ${PortalType}_afterClone script that is automatically called on the 
copied object, then you can allow copy or move on the module. Copy and paste 
is something end users usually appreciate a lot.

Jérome



More information about the Erp5-dev mailing list