diff --git a/contract_variable_qty_sale_order_line/README.rst b/contract_variable_qty_sale_order_line/README.rst new file mode 100644 index 000000000..450330145 --- /dev/null +++ b/contract_variable_qty_sale_order_line/README.rst @@ -0,0 +1,100 @@ +===================================== +Contract Variable Qty Sale Order Line +===================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github + :target: https://github.com/OCA/contract/tree/12.0/contract_variable_qty_sale_order_line + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_variable_qty_sale_order_line + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/110/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a formula to compute sale order line quantity to invoice as +extension of the module contract_variable_quantity. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to Invoicing > Sales > Contracts and select or create a new contract. +#. Check *Generate recurring invoices automatically*. +#. Add a new recurring invoicing line. +#. Select "Variable quantity" in column "Qty. type". +#. Select "Sale Order Line" + +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 +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* Marcel Savegnago + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Escodoo - `https://www.escodoo.com.br `_ + +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-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px + :target: https://github.com/marcelsavegnago + :alt: marcelsavegnago + +Current `maintainer `__: + +|maintainer-marcelsavegnago| + +This module is part of the `OCA/contract `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract_variable_qty_sale_order_line/__init__.py b/contract_variable_qty_sale_order_line/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/contract_variable_qty_sale_order_line/__manifest__.py b/contract_variable_qty_sale_order_line/__manifest__.py new file mode 100644 index 000000000..1bfc1a7b3 --- /dev/null +++ b/contract_variable_qty_sale_order_line/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2021 - TODAY, Escodoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Contract Variable Qty Sale Order Line', + 'summary': """ + This module adds a formula to compute sale order line quantity to + invoice as extension of the module contract_variable_quantity""", + 'version': '12.0.1.0.0', + 'license': 'AGPL-3', + 'author': 'Escodoo,Odoo Community Association (OCA)', + 'category': 'Contract Management', + 'maintainers': ['marcelsavegnago'], + 'images': ['static/description/banner.png'], + 'website': 'https://github.com/OCA/contract', + 'depends': [ + 'product_contract_variable_quantity', + ], + 'data': [ + 'data/contract_variable_qty_sale_order_line.xml', + ], +} diff --git a/contract_variable_qty_sale_order_line/data/contract_variable_qty_sale_order_line.xml b/contract_variable_qty_sale_order_line/data/contract_variable_qty_sale_order_line.xml new file mode 100644 index 000000000..5f44f50cb --- /dev/null +++ b/contract_variable_qty_sale_order_line/data/contract_variable_qty_sale_order_line.xml @@ -0,0 +1,16 @@ + + + + + + Sale Order Line Quantity + +result = 0 +if line: + result = line.sale_order_line_id.product_uom_qty or 1 + + + + diff --git a/contract_variable_qty_sale_order_line/readme/CONTRIBUTORS.rst b/contract_variable_qty_sale_order_line/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..61f9287b3 --- /dev/null +++ b/contract_variable_qty_sale_order_line/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Marcel Savegnago diff --git a/contract_variable_qty_sale_order_line/readme/CREDITS.rst b/contract_variable_qty_sale_order_line/readme/CREDITS.rst new file mode 100644 index 000000000..7762abc85 --- /dev/null +++ b/contract_variable_qty_sale_order_line/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Escodoo - `https://www.escodoo.com.br `_ diff --git a/contract_variable_qty_sale_order_line/readme/DESCRIPTION.rst b/contract_variable_qty_sale_order_line/readme/DESCRIPTION.rst new file mode 100644 index 000000000..e8631bd8a --- /dev/null +++ b/contract_variable_qty_sale_order_line/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds a formula to compute sale order line quantity to invoice as +extension of the module contract_variable_quantity. diff --git a/contract_variable_qty_sale_order_line/readme/USAGE.rst b/contract_variable_qty_sale_order_line/readme/USAGE.rst new file mode 100644 index 000000000..beb4a91a1 --- /dev/null +++ b/contract_variable_qty_sale_order_line/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +#. Go to Invoicing > Sales > Contracts and select or create a new contract. +#. Check *Generate recurring invoices automatically*. +#. Add a new recurring invoicing line. +#. Select "Variable quantity" in column "Qty. type". +#. Select "Sale Order Line" diff --git a/contract_variable_qty_sale_order_line/static/description/banner.png b/contract_variable_qty_sale_order_line/static/description/banner.png new file mode 100644 index 000000000..da4f6de2a Binary files /dev/null and b/contract_variable_qty_sale_order_line/static/description/banner.png differ diff --git a/contract_variable_qty_sale_order_line/static/description/icon.png b/contract_variable_qty_sale_order_line/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/contract_variable_qty_sale_order_line/static/description/icon.png differ diff --git a/contract_variable_qty_sale_order_line/static/description/index.html b/contract_variable_qty_sale_order_line/static/description/index.html new file mode 100644 index 000000000..1f640a9b0 --- /dev/null +++ b/contract_variable_qty_sale_order_line/static/description/index.html @@ -0,0 +1,420 @@ + + + + + + +Contract Variable Qty Sale Order Line + + + +
+

Contract Variable Qty Sale Order Line

+ + +

Beta License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runbot

+

This module adds a formula to compute sale order line quantity to invoice as +extension of the module contract_variable_quantity.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Invoicing > Sales > Contracts and select or create a new contract.
  2. +
  3. Check Generate recurring invoices automatically.
  4. +
  5. Add a new recurring invoicing line.
  6. +
  7. Select “Variable quantity” in column “Qty. type”.
  8. +
  9. Select “Sale Order Line”
  10. +
+
+
+

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

+
    +
  • Escodoo
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

marcelsavegnago

+

This module is part of the OCA/contract project on GitHub.

+

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

+
+
+
+ +