diff --git a/deltatech_sale_pallet/README.rst b/deltatech_sale_pallet/README.rst new file mode 100644 index 0000000000..cd53fc2e6b --- /dev/null +++ b/deltatech_sale_pallet/README.rst @@ -0,0 +1,65 @@ +=========== +Sale Pallet +=========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d11234cb5b2158cdf8304fedbad6387c61b820c5f6d7818a5e4d53d010993506 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_sale_pallet + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + +Features: + - + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* Terrabit +* Dorin Hongu + +Maintainers +~~~~~~~~~~~ + +.. |maintainer-dhongu| image:: https://github.com/dhongu.png?size=40px + :target: https://github.com/dhongu + :alt: dhongu + +Current maintainer: + +|maintainer-dhongu| + +This module is part of the `dhongu/deltatech `_ project on GitHub. + +You are welcome to contribute. diff --git a/deltatech_sale_pallet/__init__.py b/deltatech_sale_pallet/__init__.py new file mode 100644 index 0000000000..09cf42a78a --- /dev/null +++ b/deltatech_sale_pallet/__init__.py @@ -0,0 +1,5 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import models +from . import wizard diff --git a/deltatech_sale_pallet/__manifest__.py b/deltatech_sale_pallet/__manifest__.py new file mode 100644 index 0000000000..2e3ea055de --- /dev/null +++ b/deltatech_sale_pallet/__manifest__.py @@ -0,0 +1,17 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +{ + "name": "Sale Pallet", + "summary": "Sale pallet", + "version": "17.0.1.0.6", + "category": "Sales", + "author": "Terrabit, Dorin Hongu", + "website": "https://www.terrabit.ro", + "depends": ["sale_margin", "account"], + "license": "LGPL-3", + "data": ["views/product_view.xml", "views/invoice_view.xml"], + "images": ["static/description/main_screenshot.png"], + "development_status": "Beta", + "maintainers": ["dhongu"], +} diff --git a/deltatech_sale_pallet/models/__init__.py b/deltatech_sale_pallet/models/__init__.py new file mode 100644 index 0000000000..ff6aa45f60 --- /dev/null +++ b/deltatech_sale_pallet/models/__init__.py @@ -0,0 +1,8 @@ +# © 2017-2019 Deltatech +# See README.rst file on addons root folder for license details + +from . import sale +from . import product_template +from . import product_category +from . import invoice +from . import sale_report diff --git a/deltatech_sale_pallet/models/invoice.py b/deltatech_sale_pallet/models/invoice.py new file mode 100644 index 0000000000..07ada56207 --- /dev/null +++ b/deltatech_sale_pallet/models/invoice.py @@ -0,0 +1,36 @@ +# © 2008-2021 Deltatech +# Dorin Hongu self.product_uom_qty: + if delete_if_under: + return 0 + else: + return 1 + else: + pallets = self.product_uom_qty / self.product_id.pallet_qty_min + if delete_if_under: + return round(pallets - 0.49) # round down + else: + return round(pallets + 0.49) # round up diff --git a/deltatech_sale_pallet/models/sale_report.py b/deltatech_sale_pallet/models/sale_report.py new file mode 100644 index 0000000000..3d541a064d --- /dev/null +++ b/deltatech_sale_pallet/models/sale_report.py @@ -0,0 +1,69 @@ +# © 2008-2021 Deltatech +# Dorin Hongu + + + + + +Sale Pallet + + + +
+

Sale Pallet

+ + +

Beta License: LGPL-3 dhongu/deltatech

+
+
Features:
+
    +
  • +
+
+
+

Table of contents

+ +
+

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

+
    +
  • Terrabit
  • +
  • Dorin Hongu
  • +
+
+
+

Maintainers

+

Current maintainer:

+

dhongu

+

This module is part of the dhongu/deltatech project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/deltatech_sale_pallet/static/description/logo-terrabit.png b/deltatech_sale_pallet/static/description/logo-terrabit.png new file mode 100644 index 0000000000..8b23ccdd37 Binary files /dev/null and b/deltatech_sale_pallet/static/description/logo-terrabit.png differ diff --git a/deltatech_sale_pallet/static/description/main_screenshot.png b/deltatech_sale_pallet/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_sale_pallet/static/description/main_screenshot.png differ diff --git a/deltatech_sale_pallet/tests/__init__.py b/deltatech_sale_pallet/tests/__init__.py new file mode 100644 index 0000000000..75cb15ea5e --- /dev/null +++ b/deltatech_sale_pallet/tests/__init__.py @@ -0,0 +1,5 @@ +# © 2008-2021 Deltatech +# Dorin Hongu + + + account.invoice.form + account.move + + +
+ +
+ + +
+
+
diff --git a/deltatech_sale_pallet/views/product_view.xml b/deltatech_sale_pallet/views/product_view.xml new file mode 100644 index 0000000000..117320ad52 --- /dev/null +++ b/deltatech_sale_pallet/views/product_view.xml @@ -0,0 +1,31 @@ + + + + + product.template.form + product.template + + + + + + + + + + + + + + product.category.form + product.category + + + + + + + + + + diff --git a/deltatech_sale_pallet/wizard/__init__.py b/deltatech_sale_pallet/wizard/__init__.py new file mode 100644 index 0000000000..92e89cdba6 --- /dev/null +++ b/deltatech_sale_pallet/wizard/__init__.py @@ -0,0 +1,2 @@ +# © 2017-2021 Deltatech +# See README.rst file on addons root folder for license details