diff --git a/account_sequence_option/README.rst b/account_sequence_option/README.rst index a00fe35c1..c9c8c7b31 100644 --- a/account_sequence_option/README.rst +++ b/account_sequence_option/README.rst @@ -25,9 +25,31 @@ Account Sequence Option |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends module ir_sequence_option and allow you to +This module extends module base_sequence_option and allow you to provide optional sequences for account.move documents, i.e., invoice, bill, journal entry. +To use this module, enable developer mode, and check "Use sequence options" +under Settings -> Technical -> Manage Sequence Options. + +If you want to define your sequences in XML, feel free to use +demo/account_demo_options.xml as a base for your own sequence definitions. + +The demo sequences use a continuous numbering scheme, without the current year +in the generated name. To use a scheme that does include the year, set +``use_date_range`` to ``true``, and use ``%(range_year)s`` the represent the year. +For example, to generate an invoice scheme that will generate "2022F00001" in +2022, try:: + + + Customer Invoice + + %(range_year)sF + true + + +Odoo will generate the date ranges automagically when the first invoice (or +vendor bill, etc) of a year is posted. + .. IMPORTANT:: This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. diff --git a/account_sequence_option/demo/account_demo_options.xml b/account_sequence_option/demo/account_demo_options.xml index e601b658d..2e3106c4a 100644 --- a/account_sequence_option/demo/account_demo_options.xml +++ b/account_sequence_option/demo/account_demo_options.xml @@ -6,90 +6,90 @@ Customer Invoice CINV/ + false Customer Refund CREF/ + false Vendor Bill VBIL/ + false Vendor Refund VREF/ + false Customer Payment CPAY/ + false Vendor Payment VPAY/ + false - + Customer Invoice [("move_type", "=", "out_invoice")] - + - + Customer Refund [("move_type", "=", "out_refund")] - + - + Vendor Bill [("move_type", "=", "in_invoice")] - + - + Vendor Refund [("move_type", "=", "in_refund")] - + - + Customer Payment [("move_type", "=", "entry"), ("payment_id.payment_type", "=", "inbound")] - + - + Vendor Payment [("move_type", "=", "entry"), ("payment_id.payment_type", "=", "outbound")] - + diff --git a/account_sequence_option/readme/DESCRIPTION.rst b/account_sequence_option/readme/DESCRIPTION.rst index a23cf505f..3da4ca294 100644 --- a/account_sequence_option/readme/DESCRIPTION.rst +++ b/account_sequence_option/readme/DESCRIPTION.rst @@ -1,2 +1,25 @@ -This module extends module ir_sequence_option and allow you to +This module extends module base_sequence_option and allow you to provide optional sequences for account.move documents, i.e., invoice, bill, journal entry. + +To use this module, enable developer mode, and check "Use sequence options" +under Settings -> Technical -> Manage Sequence Options. + +If you want to define your sequences in XML, feel free to use +demo/account_demo_options.xml as a base for your own sequence definitions. + +The demo sequences use a continuous numbering scheme, without the current year +in the generated name. To use a scheme that does include the year, set +``use_date_range`` to ``true``, and use ``%(range_year)s`` the represent the +year. +For example, to generate an invoice scheme that will generate "2022F00001" in +2022, try:: + + + Customer Invoice + + %(range_year)sF + true + + +Odoo will generate the date ranges automagically when the first invoice (or +vendor bill, etc) of a year is posted. diff --git a/account_sequence_option/static/description/index.html b/account_sequence_option/static/description/index.html index c5f198447..05b752d30 100644 --- a/account_sequence_option/static/description/index.html +++ b/account_sequence_option/static/description/index.html @@ -3,7 +3,7 @@ - + Account Sequence Option