[quote="gegard"][quote="Vincent_xox"]... I want to know how can I call this "duplicate" functionality in the soure code? ...[/quote] 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.[/quote]
In this functionality: copy(cr, uid, data['id'], data['form'], context=context) What is "data['id'] and data['form']" mean? And where I need to put the source id of the product? -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=43857#43857 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
