Changeset 1565 in main


Ignore:
Timestamp:
08/10/12 08:14:59 (7 years ago)
Author:
zali
Message:

Controllers (plmobject) : save histo when a plmobject is cloned

Location:
trunk/openPLM/plmapp/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/document.py

    r1543 r1565  
    557557                models.DocumentPartLink.objects.create(part=part, 
    558558                    document=new_ctrl.object) 
     559        details = "to %s//%s//%s//%s " %(new_ctrl.type, new_ctrl.reference, new_ctrl.revision, new_ctrl.name) 
     560        self._save_histo("Clone", details) 
    559561        return new_ctrl 
    560562         
  • trunk/openPLM/plmapp/controllers/part.py

    r1513 r1565  
    800800                models.DocumentPartLink.objects.create(part=new_ctrl.object, 
    801801                    document=doc) 
     802        details = "to %s//%s//%s//%s " %(new_ctrl.type, new_ctrl.reference, new_ctrl.revision, new_ctrl.name) 
     803        self._save_histo("Clone", details) 
    802804        return new_ctrl 
    803805 
Note: See TracChangeset for help on using the changeset viewer.