diff --git a/nfu_sale_product_min_max_qty/README.rst b/nfu_sale_product_min_max_qty/README.rst new file mode 100644 index 0000000..8f135ec --- /dev/null +++ b/nfu_sale_product_min_max_qty/README.rst @@ -0,0 +1,65 @@ +========================== +NFU Sale Min Max Quantitiy +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4dfaea54e4d01502b433eb5c0dcca409a5fbe2c3f175e29382a19230343183c9 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-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-bruecksen%2Fife_nfu-lightgray.png?logo=github + :target: https://github.com/bruecksen/ife_nfu/tree/16.0/nfu_sale_product_min_max_qty + :alt: bruecksen/ife_nfu + +|badge1| |badge2| |badge3| + +This module adds a minium and a maximum order quantity field to Sale Orders + +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + +:1.0.0: Initial module. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* BAKEUP + +Contributors +~~~~~~~~~~~~ + +* Niels Göttsch + +Maintainers +~~~~~~~~~~~ + +This module is part of the `bruecksen/ife_nfu `_ project on GitHub. + +You are welcome to contribute. diff --git a/nfu_sale_product_min_max_qty/__init__.py b/nfu_sale_product_min_max_qty/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/nfu_sale_product_min_max_qty/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/nfu_sale_product_min_max_qty/__manifest__.py b/nfu_sale_product_min_max_qty/__manifest__.py new file mode 100644 index 0000000..4a7a79c --- /dev/null +++ b/nfu_sale_product_min_max_qty/__manifest__.py @@ -0,0 +1,11 @@ +{ + "name": "NFU Sale Min Max Quantitiy", + "summary": "Add minimum and maximum order quantities to sale orders", + "author": "BAKEUP", + "website": "https://www.bakeup.org", + "category": "Stock", + "version": "16.0.0.0.1", + "depends": ["stock"], + "data": ["views/sale_order_views.xml"], + "license": "LGPL-3", +} diff --git a/nfu_sale_product_min_max_qty/models/__init__.py b/nfu_sale_product_min_max_qty/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/nfu_sale_product_min_max_qty/models/sale_order_line.py b/nfu_sale_product_min_max_qty/models/sale_order_line.py new file mode 100644 index 0000000..02734cb --- /dev/null +++ b/nfu_sale_product_min_max_qty/models/sale_order_line.py @@ -0,0 +1,5 @@ +from odoo import models + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" diff --git a/nfu_sale_product_min_max_qty/readme/CONTRIBUTORS.rst b/nfu_sale_product_min_max_qty/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..fda28e1 --- /dev/null +++ b/nfu_sale_product_min_max_qty/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Niels Göttsch \ No newline at end of file diff --git a/nfu_sale_product_min_max_qty/readme/DESCRIPTION.rst b/nfu_sale_product_min_max_qty/readme/DESCRIPTION.rst new file mode 100644 index 0000000..649dfdc --- /dev/null +++ b/nfu_sale_product_min_max_qty/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds a minium and a maximum order quantity field to Sale Orders \ No newline at end of file diff --git a/nfu_sale_product_min_max_qty/readme/HISTORY.rst b/nfu_sale_product_min_max_qty/readme/HISTORY.rst new file mode 100644 index 0000000..765ab9c --- /dev/null +++ b/nfu_sale_product_min_max_qty/readme/HISTORY.rst @@ -0,0 +1 @@ +:1.0.0: Initial module. \ No newline at end of file diff --git a/nfu_sale_product_min_max_qty/static/description/icon.png b/nfu_sale_product_min_max_qty/static/description/icon.png new file mode 100644 index 0000000..1267712 Binary files /dev/null and b/nfu_sale_product_min_max_qty/static/description/icon.png differ diff --git a/nfu_sale_product_min_max_qty/static/description/index.html b/nfu_sale_product_min_max_qty/static/description/index.html new file mode 100644 index 0000000..9a46f09 --- /dev/null +++ b/nfu_sale_product_min_max_qty/static/description/index.html @@ -0,0 +1,428 @@ + + + + + +NFU Sale Min Max Quantitiy + + + +
+

NFU Sale Min Max Quantitiy

+ + +

Beta License: LGPL-3 bruecksen/ife_nfu

+

This module adds a minium and a maximum order quantity field to Sale Orders

+

Table of contents

+ +
+

Changelog

+ +++ + + + +
1.0.0:Initial module.
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • BAKEUP
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the bruecksen/ife_nfu project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/nfu_sale_product_min_max_qty/views/sale_order_views.xml b/nfu_sale_product_min_max_qty/views/sale_order_views.xml new file mode 100644 index 0000000..1ca5b7f --- /dev/null +++ b/nfu_sale_product_min_max_qty/views/sale_order_views.xml @@ -0,0 +1,10 @@ + + + + sale.order.form.product.min_max_qty + sale.order + + + + +