Skip to content

Instantly share code, notes, and snippets.

@akhmadkresna
Last active July 4, 2018 07:22
Show Gist options
  • Save akhmadkresna/6fd666674236b9283a42168adfe76ef0 to your computer and use it in GitHub Desktop.
Save akhmadkresna/6fd666674236b9283a42168adfe76ef0 to your computer and use it in GitHub Desktop.
create sequence odoo
<!-- 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