2009/9/18 <[email protected]> > Hello all, > I want to write a function to create a new product. > In the beginning,I have several products,than I want to copy one of the > products and modify some of its properties,making it to a new product. > > I do not want to copy its properties one by one. > I want to copy the whole product, like OOP in Java. > Is it possible? > How can I make it? >
Yes, maybe you must read technical documentation[1] about this, create and browse method, dicts in python will solve your issue. Do you check any example in documentation or in the code? http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/methods.html > > > > > -------------------- m2f -------------------- > > -- > http://www.openobject.com/forum/viewtopic.php?p=43846#43846 > > -------------------- m2f -------------------- > > > _______________________________________________ > Tinyerp-users mailing list > http://tiny.be/mailman2/listinfo/tinyerp-users > -- Cristian Salamea CEO GnuThink Software Labs Software Libre / Open Source (+593-8) 4-36-44-48
_______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
