Created
December 3, 2021 06:02
Reset Sequence Number at the End of Every Day in Odoo14
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<odoo> | |
<data noupdate="0"> | |
<record id="your_sequence_number_xml_id_goes_here" model="ir.sequence"> | |
<field name="name">Your Sequence Name</field> | |
<field name="code">your_sequence_number_code_goes_here</field> | |
<field name="prefix">%(y)s%(month)s%(day)s-</field> | |
<field eval="1" name="number_next"/> | |
<field eval="1" name="number_increment"/> | |
<field eval="True" name="use_date_range"/> | |
<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
Reset Sequence Number at the End of Every Day in Odoo14