Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have developed a new module in openerp to enter the warranty details of the customer.Each entry made is displayed in the tree view.I want to set a unique no.in a predefined format to each of the entry.Now the entries are generated with numbers 25,26,29,25,28,26 like that.I want some recognizable number so that I can easily identify each entry when used in reference fields.How can this be done?Any ideas?
Create sequence for your object Go Settings >> Sequences & Identifiers >> Sequences
Add new file yourfilename_sequence.xml in your module pase this code ans change as per your requirement, add in __opnerp__.py update module
<?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> <!-- Sequences for sale.order --> <record id="seq_type_sale_order" model="ir.sequence.type"> <field name="name">Sales Order</field> <field name="code">sale.order</field> </record> <record id="seq_sale_order" model="ir.sequence"> <field name="name">Sales Order</field> <field name="code">sale.order</field> <field name="prefix">SO</field> <field name="padding">3</field> <field name="company_id" eval="False"/> </record> </data> </openerp>
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/4/14, 10:28 AM|
|Seen: 1336 times|
|Last updated: 3/16/15, 8:10 AM|