Last active
July 4, 2018 07:22
-
-
Save akhmadkresna/6fd666674236b9283a42168adfe76ef0 to your computer and use it in GitHub Desktop.
create sequence odoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Here i create sequence for model 'sale.doc' with prefix 'SK'. Padding is the length of increment number. padding 5 = 00001 --> | |
<!-- Later to be used in python code for running number of 'sale.doc' --> | |
<odoo> | |
<data noupdate="1"> | |
<record id="seq_sale_doc" model="ir.sequence"> | |
<field name="name">doc sequence</field> | |
<field name="code">sale.doc</field> | |
<field name="prefix">SK</field> | |
<field name="padding">5</field> | |
</record> | |
</data> | |
</odoo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment