You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2019 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="ir_sequence_demo" model="ir.sequence">
  6. <field name="name">Demo sequence</field>
  7. <field name="code">custom.demo.sequence</field>
  8. <field name="prefix">STJ/%(range_year)s-%(range_month)s-%(range_day)s/</field>
  9. <field name="date_range_field">date_to</field>
  10. <field name="padding" eval="4"/>
  11. <field name="use_date_range" eval="True"/>
  12. <field name="number_increment" eval="1"/>
  13. <field name="company_id" eval="False"/>
  14. </record>
  15. <record id="ir_sequence_date_range_demo1" model="ir.sequence.date_range">
  16. <field name="sequence_id" ref="ir_sequence_demo"/>
  17. <field name="date_from" eval="time.strftime(str(DateTime.today().year - 2) + '-10-01')"/>
  18. <field name="date_to" eval="time.strftime(str(DateTime.today().year - 1) + '-09-30')"/>
  19. <field name="number_next" eval="1"/>
  20. </record>
  21. <record id="ir_sequence_date_range_demo2" model="ir.sequence.date_range">
  22. <field name="sequence_id" ref="ir_sequence_demo"/>
  23. <field name="date_from" eval="time.strftime(str(DateTime.today().year - 1) + '-10-01')"/>
  24. <field name="date_to" eval="time.strftime(str(DateTime.today().year) + '-09-30')"/>
  25. <field name="number_next" eval="1"/>
  26. </record>
  27. <record id="ir_sequence_date_range_demo3" model="ir.sequence.date_range">
  28. <field name="sequence_id" ref="ir_sequence_demo"/>
  29. <field name="date_from" eval="time.strftime(str(DateTime.today().year) + '-10-01')"/>
  30. <field name="date_to" eval="time.strftime(str(DateTime.today().year + 1) + '-09-30')"/>
  31. <field name="number_next" eval="1"/>
  32. </record>
  33. </odoo>