How To generate Random Numbers prefix String or numbers
Give Example in v8.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
To create a sequence define one xml file like, seq_name.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="seq_type_competence_skill" model="ir.sequence.type">
<field name="name">Competence Id</field>
<field name="code">competence.skill</field>
</record>
<record id="seq_competence_skill" model="ir.sequence">
<field name="name">Competence Id</field>
<field name="code">competence.skill</field>
<field name="prefix">ID</field>
<field name="padding">4</field>
<field name="company_id" eval="False" />
</record>
</data>
</openerp>
write _defaults in .py file to generate automaic sequence
'seq_id':lambda self, cr, uid, context:self.pool.get('ir.sequence').get(cr, uid, 'competence.skill', context=context)
Dear Yougesh,
Please refer below link may be help for you.
https://www.odoo.com/forum/help-1/question/how-to-implement-sequences-8830
http://pinakinnayi.blogspot.in/2012/05/auto-number-generate-in-openerp.html
Cheers,
Ankit H Gandhi.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
0
Mar 25
|
2085 | |||
|
0
Jan 25
|
4409 | |||
|
1
Agu 23
|
16036 | |||
|
change password
Diselesaikan
|
1
Agu 23
|
14679 | ||
|
1
Jul 23
|
11961 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.