1
votes

how to create sequence number in openerp 7 like below

its already supported for

<field name="prefix">STJ/%(year)s/</field>

but i need to add my own record & create like this

<field name="prefix">%(employer_no)s/</field>

employer_no mention in my form

please refer my code in here https://github.com/priyankahdp/openerp/blob/openerp/

1
You can not put employer_no like this in prefix, its only support month year minutes hours etc...user1576199

1 Answers

1
votes

I think that your only chance for injecting custom variables into sequence interpolation is to override the interpolation_dict method of ir.sequence