Hello,
Thank you for ur quick response
I am bit confused with the sales_purchase_seq module code
pool_seq=self.pool.get('ir.sequence')
cr.execute("select
id,number_next,number_increment,prefix,suffix,padding from ir_sequence where
code='sale.order' and active=True")
res = cr.dictfetchone()
if res:
if res['number_next']:
return pool_seq._process(res['prefix']) + '%%0%sd' %
res['padding'] % res['number_next'] + pool_seq._process(res['suffix'])
else:
return pool_seq._process(res['prefix']) +
pool_seq._process(res['suffix'])
return False
def create(self, cr, user, vals, context=None):
name=self.pool.get('ir.sequence').get(cr, user, 'sale.order')
return super(sale_order,self).create(cr, user, vals, context)
can u pls explain clearly, i have poor knowledge in python script
Thank you.
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=40242#40242
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users