diff --git a/base_sequence_option/README.rst b/base_sequence_option/README.rst new file mode 100644 index 000000000..0745017f8 --- /dev/null +++ b/base_sequence_option/README.rst @@ -0,0 +1,119 @@ +==================== +Base Sequence Option +==================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github + :target: https://github.com/OCA/server-tools/tree/14.0/base_sequence_option + :alt: OCA/server-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_sequence_option + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/149/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allow user to add optional sequences to some document model. +On which sequence is used, is based on domain matching with document values +(and original sequence will be bypassed). + +For example, it is now possible to, + +* Avoid using Odoo automatic sequence on invoice and vendor bill with old style sequence. +* Customer payment and vendor payment to run on different sequence. +* Assign different sales order sequence based on customer region. + +This is a base module and does nothing by itself. Following are modules +that will allow managing sequence options for each type of documents, I.e., + +* Purchase Order: purchase_sequence_option +* Invoice / Bill / Refund / Payment: account_sequence_option +* Others: create a new module with few lines of code + +.. 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. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1. Go to *Settings > Technical > Sequences & Identifier > Manage Sequence Options*. +2. Based on extended module installed, different document types will be listed, i.e., Purchase Order. +3. Activite "Use sequence options" to use, if not, fall back to normal sequence. +4. For each option, provide, + * Name: i.e., Customer Invoice for Cust A., Customer Payment, etc. + * Apply On: a filter domain to test whether a document match this option. + * Sequence: select underlining sequence to perform + +**Note:** + +* If no options matches the document, fall back to normal sequence. +* If there are multiple sequence options that match same document, error will be raised. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Ecosoft + +Contributors +~~~~~~~~~~~~ + +* Kitti U. + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px + :target: https://github.com/kittiu + :alt: kittiu + +Current `maintainer `__: + +|maintainer-kittiu| + +This module is part of the `OCA/server-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_sequence_option/static/description/index.html b/base_sequence_option/static/description/index.html index 3922ee59f..bf8088a0f 100644 --- a/base_sequence_option/static/description/index.html +++ b/base_sequence_option/static/description/index.html @@ -4,7 +4,7 @@ -Base Cron Exclusion +Base Sequence Option -
-

Base Cron Exclusion

+
+

Base Sequence Option

-

Production/Stable License: LGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

-

This module extends the functionality of scheduled actions to allow you to -select the ones that should not run simultaneously.

+

Alpha License: LGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

+

This module allow user to add optional sequences to some document model. +On which sequence is used, is based on domain matching with document values +(and original sequence will be bypassed).

+

For example, it is now possible to,

+
    +
  • Avoid using Odoo automatic sequence on invoice and vendor bill with old style sequence.
  • +
  • Customer payment and vendor payment to run on different sequence.
  • +
  • Assign different sales order sequence based on customer region.
  • +
+

This is a base module and does nothing by itself. Following are modules +that will allow managing sequence options for each type of documents, I.e.,

+
    +
  • Purchase Order: purchase_sequence_option
  • +
  • Invoice / Bill / Refund / Payment: account_sequence_option
  • +
  • Others: create a new module with few lines of code
  • +
+
+

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. +More details on development status

+

Table of contents

    @@ -387,19 +407,32 @@ select the ones that should not run simultaneously.

    Usage

    To use this module, you need to:

      -
    1. Go to Settings > Technical > Automation > Scheduled Actions.
    2. -
    3. In the form view go to the tab Mutually Exclusive Scheduled Actions.
    4. -
    5. Fill it with the actions that should be blocked while running the action -you are editing. Note that this is mutual and the selected actions will -block the initial action when running.
    6. +
    7. Go to Settings > Technical > Sequences & Identifier > Manage Sequence Options.
    8. +
    9. Based on extended module installed, different document types will be listed, i.e., Purchase Order.
    10. +
    11. Activite “Use sequence options” to use, if not, fall back to normal sequence.
    12. +
    13. +
      For each option, provide,
      +
        +
      • Name: i.e., Customer Invoice for Cust A., Customer Payment, etc.
      • +
      • Apply On: a filter domain to test whether a document match this option.
      • +
      • Sequence: select underlining sequence to perform
      • +
      +
      +
      +
    +

    Note:

    +
      +
    • If no options matches the document, fall back to normal sequence.
    • +
    • If there are multiple sequence options that match same document, error will be raised.
    • +

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -407,15 +440,13 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Authors

    -
  • ForgeFlow
  • +
  • Ecosoft
@@ -426,8 +457,8 @@ If you spotted it first, help us smashing it by providing a detailed and welcome mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

-

LoisRForgeFlow

-

This module is part of the OCA/server-tools project on GitHub.

+

kittiu

+

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.