Vincent_xox wrote: > ... I want to know how can I call this "duplicate" functionality in the soure > code? ...
Use something that already exists as a model. In wizard_account_duplicate.py, for example, there's this function: def _do_duplicate(self, cr, uid, data, context): account_obj = pooler.get_pool(cr.dbname).get('account.account') account_obj.copy(cr, uid, data['id'], data['form'], context=context) return {} It seems to me to be a good model. ------------------------ Regards, Geoff Seath Solutions Ltd (http://www.seathsolutions.com) -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=43854#43854 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
