diff --git a/deltatech_data_sheet/README.rst b/deltatech_data_sheet/README.rst new file mode 100644 index 0000000000..f048beea48 --- /dev/null +++ b/deltatech_data_sheet/README.rst @@ -0,0 +1,63 @@ +================== +Product Data Sheet +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:13973f7ab46877e08e34e88f1072940cb45abdc733ef63b23ddcc002b10909a4 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |badge2| image:: https://img.shields.io/badge/licence-OPL--1-blue.png + :target: https://www.odoo.com/documentation/master/legal/licenses.html + :alt: License: OPL-1 +.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_data_sheet + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + + +**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_data_sheet/__init__.py b/deltatech_data_sheet/__init__.py new file mode 100644 index 0000000000..9e76ac0ac3 --- /dev/null +++ b/deltatech_data_sheet/__init__.py @@ -0,0 +1,4 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import models diff --git a/deltatech_data_sheet/__manifest__.py b/deltatech_data_sheet/__manifest__.py new file mode 100644 index 0000000000..8efaf77839 --- /dev/null +++ b/deltatech_data_sheet/__manifest__.py @@ -0,0 +1,18 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +{ + "name": "Product Data Sheet", + "summary": "Data Sheet", + "version": "17.0.1.0.0", + "author": "Terrabit, Dorin Hongu", + "website": "https://www.terrabit.ro", + "category": "Administration", + "depends": ["product"], + "license": "OPL-1", + "data": ["views/product_view.xml"], + "images": ["static/description/main_screenshot.png"], + "installable": True, + "development_status": "Production/Stable", + "maintainers": ["dhongu"], +} diff --git a/deltatech_data_sheet/__pycache__/__init__.cpython-310.pyc b/deltatech_data_sheet/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..85c27e6a9d Binary files /dev/null and b/deltatech_data_sheet/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_data_sheet/i18n/ro.po b/deltatech_data_sheet/i18n/ro.po new file mode 100644 index 0000000000..f226e73c02 --- /dev/null +++ b/deltatech_data_sheet/i18n/ro.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * deltatech_data_sheet +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0+ec\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-03-15 10:19+0000\n" +"PO-Revision-Date: 2020-03-15 10:19+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: deltatech_data_sheet +#: model:ir.model.fields,field_description:deltatech_data_sheet.field_product_product__data_sheet_id +#: model:ir.model.fields,field_description:deltatech_data_sheet.field_product_template__data_sheet_id +#: model_terms:ir.ui.view,arch_db:deltatech_data_sheet.product_template_form_view +msgid "Data Sheet" +msgstr "Fișă tehnică" + +#. module: deltatech_data_sheet +#: model:ir.model,name:deltatech_data_sheet.model_product_template +msgid "Product Template" +msgstr "Șablon produs" + +#. module: deltatech_data_sheet +#: model:ir.model.fields,field_description:deltatech_data_sheet.field_product_product__safety_data_sheet_id +#: model:ir.model.fields,field_description:deltatech_data_sheet.field_product_template__safety_data_sheet_id +msgid "Safety Data Sheet" +msgstr "Fișă securitate" + diff --git a/deltatech_data_sheet/models/__init__.py b/deltatech_data_sheet/models/__init__.py new file mode 100644 index 0000000000..27bc4f84f8 --- /dev/null +++ b/deltatech_data_sheet/models/__init__.py @@ -0,0 +1,4 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import product diff --git a/deltatech_data_sheet/models/__pycache__/__init__.cpython-310.pyc b/deltatech_data_sheet/models/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..820b096028 Binary files /dev/null and b/deltatech_data_sheet/models/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_data_sheet/models/__pycache__/product.cpython-310.pyc b/deltatech_data_sheet/models/__pycache__/product.cpython-310.pyc new file mode 100644 index 0000000000..5388c375ec Binary files /dev/null and b/deltatech_data_sheet/models/__pycache__/product.cpython-310.pyc differ diff --git a/deltatech_data_sheet/models/product.py b/deltatech_data_sheet/models/product.py new file mode 100644 index 0000000000..86d0ce29fb --- /dev/null +++ b/deltatech_data_sheet/models/product.py @@ -0,0 +1,21 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + # {'default_public':True,'default_res_model':'ir.ui.view'} + data_sheet_id = fields.Many2one( + "ir.attachment", + string="Data Sheet Attachment", + domain=[("mimetype", "=", "application/pdf"), ("public", "=", True)], + ) + + safety_data_sheet_id = fields.Many2one( + "ir.attachment", + string="Safety Data Sheet", + domain=[("mimetype", "=", "application/pdf"), ("public", "=", True)], + ) diff --git a/deltatech_data_sheet/readme/DESCRIPTION.rst b/deltatech_data_sheet/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..e69de29bb2 diff --git a/deltatech_data_sheet/static/description/icon.png b/deltatech_data_sheet/static/description/icon.png new file mode 100644 index 0000000000..36ef3b1179 Binary files /dev/null and b/deltatech_data_sheet/static/description/icon.png differ diff --git a/deltatech_data_sheet/static/description/index.html b/deltatech_data_sheet/static/description/index.html new file mode 100644 index 0000000000..d220f1c9b5 --- /dev/null +++ b/deltatech_data_sheet/static/description/index.html @@ -0,0 +1,409 @@ + + + + + + +Product Data Sheet + + + +
+

Product Data Sheet

+ + +

Production/Stable dhongu/deltatech

+

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_data_sheet/static/description/logo-terrabit.png b/deltatech_data_sheet/static/description/logo-terrabit.png new file mode 100644 index 0000000000..8b23ccdd37 Binary files /dev/null and b/deltatech_data_sheet/static/description/logo-terrabit.png differ diff --git a/deltatech_data_sheet/static/description/main_screenshot.png b/deltatech_data_sheet/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_data_sheet/static/description/main_screenshot.png differ diff --git a/deltatech_data_sheet/views/product_view.xml b/deltatech_data_sheet/views/product_view.xml new file mode 100644 index 0000000000..174a71631b --- /dev/null +++ b/deltatech_data_sheet/views/product_view.xml @@ -0,0 +1,26 @@ + + + + product.template.common.form + product.template + + + + + + + + + + + + + + diff --git a/deltatech_data_sheet_website/README.rst b/deltatech_data_sheet_website/README.rst new file mode 100644 index 0000000000..2dfae1b4d0 --- /dev/null +++ b/deltatech_data_sheet_website/README.rst @@ -0,0 +1,63 @@ +========================== +Product Data Sheet Website +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:095d7a410517e0376b0bdc7c35bde2397ab81d38ac36965c0e720b5b714fd53c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |badge2| image:: https://img.shields.io/badge/licence-OPL--1-blue.png + :target: https://www.odoo.com/documentation/master/legal/licenses.html + :alt: License: OPL-1 +.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_data_sheet_website + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + + +**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_data_sheet_website/__init__.py b/deltatech_data_sheet_website/__init__.py new file mode 100644 index 0000000000..9e76ac0ac3 --- /dev/null +++ b/deltatech_data_sheet_website/__init__.py @@ -0,0 +1,4 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import models diff --git a/deltatech_data_sheet_website/__manifest__.py b/deltatech_data_sheet_website/__manifest__.py new file mode 100644 index 0000000000..66ca86b67a --- /dev/null +++ b/deltatech_data_sheet_website/__manifest__.py @@ -0,0 +1,18 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +{ + "name": "Product Data Sheet Website", + "summary": "Data Sheet", + "version": "17.0.1.0.0", + "author": "Terrabit, Dorin Hongu", + "license": "OPL-1", + "website": "https://www.terrabit.ro", + "category": "Administration", + "depends": ["website_sale", "deltatech_data_sheet"], + "data": ["views/templates.xml"], + "images": ["static/description/main_screenshot.png"], + "installable": True, + "development_status": "Production/Stable", + "maintainers": ["dhongu"], +} diff --git a/deltatech_data_sheet_website/__pycache__/__init__.cpython-310.pyc b/deltatech_data_sheet_website/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..4f04e7d9e6 Binary files /dev/null and b/deltatech_data_sheet_website/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_data_sheet_website/i18n/ro.po b/deltatech_data_sheet_website/i18n/ro.po new file mode 100644 index 0000000000..46e848c6c7 --- /dev/null +++ b/deltatech_data_sheet_website/i18n/ro.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * deltatech_data_sheet_website +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0+ec\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-03-15 10:21+0000\n" +"PO-Revision-Date: 2020-03-15 10:21+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: deltatech_data_sheet_website +#: model_terms:ir.ui.view,arch_db:deltatech_data_sheet_website.product_data_sheet +msgid "Show Data Sheet" +msgstr "Afișare Fișă Tehnică" + +#. module: deltatech_data_sheet_website +#: model_terms:ir.ui.view,arch_db:deltatech_data_sheet_website.product_data_sheet +msgid "Show Safety Data Sheet" +msgstr "Afișare Fișă Securitate" diff --git a/deltatech_data_sheet_website/models/__init__.py b/deltatech_data_sheet_website/models/__init__.py new file mode 100644 index 0000000000..b22eb54676 --- /dev/null +++ b/deltatech_data_sheet_website/models/__init__.py @@ -0,0 +1,2 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details diff --git a/deltatech_data_sheet_website/models/__pycache__/__init__.cpython-310.pyc b/deltatech_data_sheet_website/models/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..4129844d59 Binary files /dev/null and b/deltatech_data_sheet_website/models/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_data_sheet_website/readme/DESCRIPTION.rst b/deltatech_data_sheet_website/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..e69de29bb2 diff --git a/deltatech_data_sheet_website/static/description/icon.png b/deltatech_data_sheet_website/static/description/icon.png new file mode 100644 index 0000000000..36ef3b1179 Binary files /dev/null and b/deltatech_data_sheet_website/static/description/icon.png differ diff --git a/deltatech_data_sheet_website/static/description/index.html b/deltatech_data_sheet_website/static/description/index.html new file mode 100644 index 0000000000..c76057d2b7 --- /dev/null +++ b/deltatech_data_sheet_website/static/description/index.html @@ -0,0 +1,409 @@ + + + + + + +Product Data Sheet Website + + + +
+

Product Data Sheet Website

+ + +

Production/Stable dhongu/deltatech

+

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_data_sheet_website/static/description/logo-terrabit.png b/deltatech_data_sheet_website/static/description/logo-terrabit.png new file mode 100644 index 0000000000..8b23ccdd37 Binary files /dev/null and b/deltatech_data_sheet_website/static/description/logo-terrabit.png differ diff --git a/deltatech_data_sheet_website/static/description/main_screenshot.png b/deltatech_data_sheet_website/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_data_sheet_website/static/description/main_screenshot.png differ diff --git a/deltatech_data_sheet_website/views/templates.xml b/deltatech_data_sheet_website/views/templates.xml new file mode 100644 index 0000000000..2bb34e66a9 --- /dev/null +++ b/deltatech_data_sheet_website/views/templates.xml @@ -0,0 +1,17 @@ + + + + diff --git a/deltatech_dc/README.rst b/deltatech_dc/README.rst new file mode 100644 index 0000000000..832ba0784a --- /dev/null +++ b/deltatech_dc/README.rst @@ -0,0 +1,66 @@ +========================= +Declaration of Conformity +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e8a1d5d06021ebfae424d23ce55a04d7732392d4a13afd2e24244d421e9d8da0 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png + :target: https://odoo-community.org/page/development-status + :alt: Mature +.. |badge2| image:: https://img.shields.io/badge/licence-OPL--1-blue.png + :target: https://www.odoo.com/documentation/master/legal/licenses.html + :alt: License: OPL-1 +.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_dc + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + +Features: + - Declaration of Conformity + - Declaration of Conformity printing at billing + +**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_dc/__init__.py b/deltatech_dc/__init__.py new file mode 100644 index 0000000000..2a46a2bbb0 --- /dev/null +++ b/deltatech_dc/__init__.py @@ -0,0 +1,6 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + + +from . import models +from . import report diff --git a/deltatech_dc/__manifest__.py b/deltatech_dc/__manifest__.py new file mode 100644 index 0000000000..39ab688d27 --- /dev/null +++ b/deltatech_dc/__manifest__.py @@ -0,0 +1,34 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + + +{ + "name": "Declaration of Conformity", + "summary": "Print Declaration of Conformity", + "version": "17.0.1.0.3", + "author": "Terrabit, Dorin Hongu", + "website": "https://www.terrabit.ro", + "license": "OPL-1", + "category": "Generic Modules/Other", + "depends": [ + "base", + "product", + "sale", + "mrp", + "product_expiry" + # "stock_picking_invoice_link" + ], + "data": [ + "views/product_view.xml", + "views/production_lot_view.xml", + "views/deltatech_dc_view.xml", + "views/deltatech_dc_report.xml", + "views/report_dc.xml", + "security/ir.model.access.csv", + "security/security.xml", + "data/data.xml", + ], + "images": ["static/description/main_screenshot.png"], + "development_status": "Mature", + "maintainers": ["dhongu"], +} diff --git a/deltatech_dc/__pycache__/__init__.cpython-310.pyc b/deltatech_dc/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..c84b6cfff4 Binary files /dev/null and b/deltatech_dc/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_dc/data/data.xml b/deltatech_dc/data/data.xml new file mode 100644 index 0000000000..1d9ce37843 --- /dev/null +++ b/deltatech_dc/data/data.xml @@ -0,0 +1,13 @@ + + + + + Declaration of Conformity + DC/ + declaration.conformity + 5 + 1 + 1 + + + diff --git a/deltatech_dc/i18n/ro.po b/deltatech_dc/i18n/ro.po new file mode 100644 index 0000000000..9b9bf6976a --- /dev/null +++ b/deltatech_dc/i18n/ro.po @@ -0,0 +1,225 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * deltatech_dc +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-09-09 23:11+0000\n" +"PO-Revision-Date: 2022-09-09 23:11+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid ", declare that the product:" +msgstr ", declaram că produsul:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid ", with dates the tax identification" +msgstr ", cu datele de identificare fiscală" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid ", with its headquarters in" +msgstr ", cu sediul în localitatea" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "Declaration of Conformity:" +msgstr "Declarație de conformitate:Standard of Company #:" +msgstr "Standard de firmă:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "Standards:" +msgstr "Standarde:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "Technical Data Sheet #:" +msgstr "Fișa tehnică nr.:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "Technical Specification #:" +msgstr "Speciticație tehnică nr.:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "We," +msgstr "Noi," + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "and controlled according to Quality Control Plan dated in" +msgstr "" +"și controlat în conformitate cu Planul de control al calității din data" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "is made in accordance with:" +msgstr "este realizat în conformitate cu:" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "street" +msgstr "strada" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "with lot number" +msgstr "cu lot numărul" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "with expiration date" +msgstr "cu data de expirare în" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__company_id +msgid "Company" +msgstr "Compania" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__create_uid +msgid "Created by" +msgstr "Creat de" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__create_date +msgid "Created on" +msgstr "Creat în" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__data_sheet +#: model:ir.model.fields,field_description:deltatech_dc.field_product_product__data_sheet +#: model:ir.model.fields,field_description:deltatech_dc.field_product_template__data_sheet +msgid "Data Sheet" +msgstr "Fișa tehnică" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__date +msgid "Date of Declaration" +msgstr "Data Declarație" + +#. module: deltatech_dc +#: model:ir.actions.act_window,name:deltatech_dc.action_deltatech_dc +#: model:ir.actions.report,name:deltatech_dc.action_report_dc +#: model:ir.actions.report,name:deltatech_dc.action_report_dc_invoice +#: model:ir.actions.report,name:deltatech_dc.action_report_dc_lot +#: model:ir.model,name:deltatech_dc.model_deltatech_dc +#: model:ir.ui.menu,name:deltatech_dc.menu_deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.view_deltatech_dc_type_form +#: model_terms:ir.ui.view,arch_db:deltatech_dc.view_deltatech_dc_type_tree +msgid "Declaration of Conformity" +msgstr "Declarație de conformitate" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__display_name +msgid "Display Name" +msgstr "Nume afișat" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "F(PP 7.5/4.4.6-01)03" +msgstr "" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__id +msgid "ID" +msgstr "" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc____last_update +msgid "Last Modified on" +msgstr "Ultima modificare la" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__write_uid +msgid "Last Updated by" +msgstr "Ultima actualizare făcută de" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__write_date +msgid "Last Updated on" +msgstr "Ultima actualizare pe" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__name +msgid "Number" +msgstr "Număr" + +#. module: deltatech_dc +#: model:ir.model,name:deltatech_dc.model_product_product +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__product_id +msgid "Product" +msgstr "Produs" + +#. module: deltatech_dc +#: model:ir.model,name:deltatech_dc.model_product_template +msgid "Product Template" +msgstr "Șablon produs" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.product_template_form_view +msgid "Quality Control" +msgstr "Control calitate" + +#. module: deltatech_dc +#: model:ir.model,name:deltatech_dc.model_report_deltatech_dc_report_dc +#: model:ir.model,name:deltatech_dc.model_report_deltatech_dc_report_dc_invoice +#: model:ir.model,name:deltatech_dc.model_report_deltatech_dc_report_dc_lot +msgid "ReportDCPrint" +msgstr "" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "Signature," +msgstr "Semnatură" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__company_standard +#: model:ir.model.fields,field_description:deltatech_dc.field_product_product__company_standard +#: model:ir.model.fields,field_description:deltatech_dc.field_product_template__company_standard +msgid "Standard of Company" +msgstr "Standardul de firmă" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__standards +#: model:ir.model.fields,field_description:deltatech_dc.field_product_product__standards +#: model:ir.model.fields,field_description:deltatech_dc.field_product_template__standards +msgid "Standards" +msgstr "Standarde" + +#. module: deltatech_dc +#: model:ir.model.fields,field_description:deltatech_dc.field_deltatech_dc__technical_specification +#: model:ir.model.fields,field_description:deltatech_dc.field_product_product__technical_specification +#: model:ir.model.fields,field_description:deltatech_dc.field_product_template__technical_specification +msgid "Technical Specification" +msgstr "Specificație tehnică" + +#. module: deltatech_dc +#: model_terms:ir.ui.view,arch_db:deltatech_dc.report_dc +msgid "" +"We hereby certify that the above mentioned materials has been inspected by ourselves and\n" +" meets our manufacturing specification and the\n" +" requirements of your order. Final physical properties and compliance with any finished\n" +" product specification depends on satisfactory\n" +" processing by yourselves." +msgstr "" +"Declarăm pe propria răspundere, că produsul nu pune în pericol viața, " +"sănătatea securitatea muncii utilizatorilor și nu este toxic pentru mediul " +"înconjurător dacă este folosit în conformitate cu destinația pentru care a " +"fost produs respectând depozitarea, manipularea din fișa cu date de " +"securitate. " \ No newline at end of file diff --git a/deltatech_dc/models/__init__.py b/deltatech_dc/models/__init__.py new file mode 100644 index 0000000000..9ea771fa7c --- /dev/null +++ b/deltatech_dc/models/__init__.py @@ -0,0 +1,6 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import deltatech_dc +from . import product +from . import production_lot diff --git a/deltatech_dc/models/__pycache__/__init__.cpython-310.pyc b/deltatech_dc/models/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..167418d8e4 Binary files /dev/null and b/deltatech_dc/models/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_dc/models/__pycache__/deltatech_dc.cpython-310.pyc b/deltatech_dc/models/__pycache__/deltatech_dc.cpython-310.pyc new file mode 100644 index 0000000000..6d73ed691c Binary files /dev/null and b/deltatech_dc/models/__pycache__/deltatech_dc.cpython-310.pyc differ diff --git a/deltatech_dc/models/__pycache__/product.cpython-310.pyc b/deltatech_dc/models/__pycache__/product.cpython-310.pyc new file mode 100644 index 0000000000..1337f4e952 Binary files /dev/null and b/deltatech_dc/models/__pycache__/product.cpython-310.pyc differ diff --git a/deltatech_dc/models/__pycache__/production_lot.cpython-310.pyc b/deltatech_dc/models/__pycache__/production_lot.cpython-310.pyc new file mode 100644 index 0000000000..4cd8486c62 Binary files /dev/null and b/deltatech_dc/models/__pycache__/production_lot.cpython-310.pyc differ diff --git a/deltatech_dc/models/deltatech_dc.py b/deltatech_dc/models/deltatech_dc.py new file mode 100644 index 0000000000..0e98e3f0c4 --- /dev/null +++ b/deltatech_dc/models/deltatech_dc.py @@ -0,0 +1,43 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + + +from odoo import _, api, fields, models + + +class DeltatechDC(models.Model): + _name = "deltatech.dc" + _description = "Declaration of Conformity" + _order = "date desc" + + name = fields.Char("Number", size=32, required=True) + date = fields.Date("Date of Declaration", required=True, index=True) + product_id = fields.Many2one( + "product.product", "Product", required=True, index=True, domain=[("sale_ok", "=", "True")] + ) + lot_id = fields.Many2one("stock.lot", index=True, domain="[('product_id', '=', product_id)]") + company_standard = fields.Char(related="product_id.company_standard", string="Standard of Company", store=False) + data_sheet = fields.Integer(related="product_id.data_sheet", string="Data Sheet", store=False) + technical_specification = fields.Integer( + related="product_id.technical_specification", string="Technical Specification", store=False + ) + standards = fields.Text(related="product_id.standards", string="Standards", store=False) + company_id = fields.Many2one("res.company", required=True, default=lambda self: self.env.company) + + def name_get(self): + result = [] + for line in self: + name = (line.product_id.name or "") + " (" + (line.name or "") + "/" + (str(line.date) or "") + ")" + result.append((line.id, name)) + + return result + + @api.model + def create(self, vals): + if "company_id" in vals: + self = self.with_company(vals["company_id"]) + if vals.get("name", _("New")) == _("New"): + vals["name"] = self.env["ir.sequence"].next_by_code("declaration.conformity") or _("New") + + result = super().create(vals) + return result diff --git a/deltatech_dc/models/product.py b/deltatech_dc/models/product.py new file mode 100644 index 0000000000..1e9fe28ece --- /dev/null +++ b/deltatech_dc/models/product.py @@ -0,0 +1,14 @@ +# © 2008-2022 Deltatech +# See README.rst file on addons root folder for license details + + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + company_standard = fields.Char("Standard of Company", size=64) + data_sheet = fields.Integer("Data Sheet") + technical_specification = fields.Integer("Technical Specification") + standards = fields.Text("Standards") diff --git a/deltatech_dc/models/production_lot.py b/deltatech_dc/models/production_lot.py new file mode 100644 index 0000000000..369173db80 --- /dev/null +++ b/deltatech_dc/models/production_lot.py @@ -0,0 +1,37 @@ +# © 2008-2022 Deltatech +# See README.rst file on addons root folder for license details + +import datetime + +from odoo import api, fields, models + + +class StockProductionLot(models.Model): + _inherit = "stock.lot" + + production_date = fields.Datetime() + + def _get_dates(self, product_id=None): + """Returns dates based on number of days configured in current lot's product.""" + mapped_fields = { + "expiration_date": "expiration_time", + "use_date": "use_time", + "removal_date": "removal_time", + "alert_date": "alert_time", + } + res = dict.fromkeys(mapped_fields, False) + product = self.env["product.product"].browse(product_id) or self.product_id + + production_date = self.production_date or datetime.datetime.now() + if product: + for field in mapped_fields: + duration = getattr(product, mapped_fields[field]) + if duration: + date = production_date + datetime.timedelta(days=duration) + res[field] = fields.Datetime.to_string(date) + return res + + @api.onchange("production_date") + def onchange_production_date(self): + if not self.production_date: + self.production_date = self.create_date diff --git a/deltatech_dc/readme/DESCRIPTION.rst b/deltatech_dc/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..1bce4971ba --- /dev/null +++ b/deltatech_dc/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +Features: + - Declaration of Conformity + - Declaration of Conformity printing at billing diff --git a/deltatech_dc/report/__init__.py b/deltatech_dc/report/__init__.py new file mode 100644 index 0000000000..5ab9f42bfc --- /dev/null +++ b/deltatech_dc/report/__init__.py @@ -0,0 +1,5 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + + +from . import report_dc diff --git a/deltatech_dc/report/__pycache__/__init__.cpython-310.pyc b/deltatech_dc/report/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..7d902b73a1 Binary files /dev/null and b/deltatech_dc/report/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_dc/report/__pycache__/report_dc.cpython-310.pyc b/deltatech_dc/report/__pycache__/report_dc.cpython-310.pyc new file mode 100644 index 0000000000..35e920448a Binary files /dev/null and b/deltatech_dc/report/__pycache__/report_dc.cpython-310.pyc differ diff --git a/deltatech_dc/report/report_dc.py b/deltatech_dc/report/report_dc.py new file mode 100644 index 0000000000..0b0ae97435 --- /dev/null +++ b/deltatech_dc/report/report_dc.py @@ -0,0 +1,102 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +import time + +from odoo import api, models + + +class ReportDCPrint(models.AbstractModel): + _name = "report.deltatech_dc.report_dc" + _description = "ReportDCPrint" + _template = "deltatech_dc.report_dc" + + @api.model + def _get_report_values(self, docids, data=None): + report = self.env["ir.actions.report"]._get_report_from_name(self._template) + return { + "doc_ids": docids, + "doc_model": report.model, + "data": data, + "time": time, + "docs": self.env[report.model].browse(docids), + "lot": False, + } + + +class ReportDCLotPrint(models.AbstractModel): + _name = "report.deltatech_dc.report_dc_lot" + _description = "ReportDCPrint" + _template = "deltatech_dc.report_dc_lot" + + @api.model + def _get_report_values(self, docids, data=None): + report = self.env["ir.actions.report"]._get_report_from_name(self._template) + lots = self.env[report.model].browse(docids) + declarations = self.env["deltatech.dc"] + for lot in lots: + domain = [("lot_id", "=", lot.id)] + dc = self.env["deltatech.dc"].search(domain) + if not dc: + dc = self.env["deltatech.dc"].create( + {"product_id": lot.product_id.id, "date": lot.production_date, "lot_id": lot.id} + ) + declarations |= dc + return { + "doc_ids": declarations.ids, + "doc_model": "deltatech.dc", + "data": data, + "time": time, + "docs": declarations, + "lot": False, + } + + +class ReportDCInvoicePrint(models.AbstractModel): + _name = "report.deltatech_dc.report_dc_invoice" + _description = "ReportDCPrint" + _template = "deltatech_dc.report_dc_invoice" + + @api.model + def _get_report_values(self, docids, data=None): + report = self.env["ir.actions.report"]._get_report_from_name(self._template) + # care sunt livrarile aferente acestie facturi ????? + + invoices = self.env[report.model].browse(docids) + + declarations = self.env["deltatech.dc"] + + product_with_lots = self.env["product.product"] + for invoice in invoices.filtered(lambda x: x.state not in ["draft", "cancel"]): + lots = invoice._get_invoiced_lot_values() + for line in lots: + lot = self.env["stock.lot"].browse(line["lot_id"]) + domain = [("lot_id", "=", lot.id)] + dc = self.env["deltatech.dc"].search(domain) + if not dc: + dc = self.env["deltatech.dc"].create( + {"product_id": lot.product_id.id, "date": lot.production_date, "lot_id": lot.id} + ) + product_with_lots |= lot.product_id + declarations |= dc + for line in invoice.invoice_line_ids.filtered( + lambda m: m.display_type not in ("line_section", "line_note") + ): + if line.product_id in product_with_lots: + continue + if line.product_id.type != "product": + continue + domain = [("product_id", "=", line.product_id.id), ("date", "=", invoice.date)] + dc = self.env["deltatech.dc"].search(domain) + if not dc: + dc = self.env["deltatech.dc"].create({"product_id": line.product_id.id, "date": invoice.date}) + declarations |= dc + + return { + "doc_ids": declarations.ids, + "doc_model": "deltatech.dc", + "data": data, + "time": time, + "docs": declarations, + "lot": False, + } diff --git a/deltatech_dc/security/ir.model.access.csv b/deltatech_dc/security/ir.model.access.csv new file mode 100644 index 0000000000..88dea434cb --- /dev/null +++ b/deltatech_dc/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_deltatech_dc,access_deltatech_dc,model_deltatech_dc,base.group_user,1,1,1,1 diff --git a/deltatech_dc/security/security.xml b/deltatech_dc/security/security.xml new file mode 100644 index 0000000000..cc12213126 --- /dev/null +++ b/deltatech_dc/security/security.xml @@ -0,0 +1,10 @@ + + + + + Declaration of Conformity multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + diff --git a/deltatech_dc/static/description/icon.png b/deltatech_dc/static/description/icon.png new file mode 100644 index 0000000000..36ef3b1179 Binary files /dev/null and b/deltatech_dc/static/description/icon.png differ diff --git a/deltatech_dc/static/description/index.html b/deltatech_dc/static/description/index.html new file mode 100644 index 0000000000..69b5b86889 --- /dev/null +++ b/deltatech_dc/static/description/index.html @@ -0,0 +1,417 @@ + + + + + + +Declaration of Conformity + + + +
+

Declaration of Conformity

+ + +

Mature dhongu/deltatech

+
+
Features:
+
    +
  • Declaration of Conformity
  • +
  • Declaration of Conformity printing at billing
  • +
+
+
+

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_dc/static/description/logo-terrabit.png b/deltatech_dc/static/description/logo-terrabit.png new file mode 100644 index 0000000000..adb2407a91 Binary files /dev/null and b/deltatech_dc/static/description/logo-terrabit.png differ diff --git a/deltatech_dc/static/description/main_screenshot.png b/deltatech_dc/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_dc/static/description/main_screenshot.png differ diff --git a/deltatech_dc/static/src/description/icon.png b/deltatech_dc/static/src/description/icon.png new file mode 100644 index 0000000000..36ef3b1179 Binary files /dev/null and b/deltatech_dc/static/src/description/icon.png differ diff --git a/deltatech_dc/static/src/description/logo-terrabit.png b/deltatech_dc/static/src/description/logo-terrabit.png new file mode 100644 index 0000000000..adb2407a91 Binary files /dev/null and b/deltatech_dc/static/src/description/logo-terrabit.png differ diff --git a/deltatech_dc/static/src/description/main_screenshot.png b/deltatech_dc/static/src/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_dc/static/src/description/main_screenshot.png differ diff --git a/deltatech_dc/tests/__init__.py b/deltatech_dc/tests/__init__.py new file mode 100644 index 0000000000..fb706d40f4 --- /dev/null +++ b/deltatech_dc/tests/__init__.py @@ -0,0 +1,6 @@ +# © 2008-2021 Deltatech +# Dorin Hongu + + + + + + Declaration of Conformity + deltatech.dc + qweb-pdf + deltatech_dc.report_dc + deltatech_dc.report_dc + report + form + + + + + + + + Declaration of Conformity + stock.lot + qweb-pdf + deltatech_dc.report_dc_lot + deltatech_dc.report_dc_lot + report + + + + + + + + Declaration of Conformity + account.move + qweb-pdf + deltatech_dc.report_dc_invoice + deltatech_dc.report_dc_invoice + report + form + + + + + + diff --git a/deltatech_dc/views/deltatech_dc_view.xml b/deltatech_dc/views/deltatech_dc_view.xml new file mode 100644 index 0000000000..8509f7f873 --- /dev/null +++ b/deltatech_dc/views/deltatech_dc_view.xml @@ -0,0 +1,65 @@ + + + + + deltatech.declaration.conformity.form + deltatech.dc + form + +
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + +
+ + + + + deltatech.declaration.conformity.tree + deltatech.dc + tree + + + + + + + + + + + + + + Declaration of Conformity + deltatech.dc + tree,form + + + + diff --git a/deltatech_dc/views/product_view.xml b/deltatech_dc/views/product_view.xml new file mode 100644 index 0000000000..fdac7f574a --- /dev/null +++ b/deltatech_dc/views/product_view.xml @@ -0,0 +1,26 @@ + + + + + product.normal.form.inherit + product.template + + + + + + + + + + + + + + + + + + + + diff --git a/deltatech_dc/views/production_lot_view.xml b/deltatech_dc/views/production_lot_view.xml new file mode 100644 index 0000000000..1ff65f3291 --- /dev/null +++ b/deltatech_dc/views/production_lot_view.xml @@ -0,0 +1,13 @@ + + + + stock.production.lot.form + stock.lot + + + + + + + + diff --git a/deltatech_dc/views/report_dc.xml b/deltatech_dc/views/report_dc.xml new file mode 100644 index 0000000000..33031f27fc --- /dev/null +++ b/deltatech_dc/views/report_dc.xml @@ -0,0 +1,102 @@ + + + + + + + + diff --git a/deltatech_dropshipping/README.rst b/deltatech_dropshipping/README.rst new file mode 100644 index 0000000000..7b34214295 --- /dev/null +++ b/deltatech_dropshipping/README.rst @@ -0,0 +1,65 @@ +======================= +Deltatech Drop Shipping +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:cbcea2abc5dfcb64064d2347ebe02a33d5110e0b9e39b5b8b7cd42d5dee328e8 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-OPL--1-blue.png + :target: https://www.odoo.com/documentation/master/legal/licenses.html + :alt: License: OPL-1 +.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_dropshipping + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + +Features: + - Afisare adresa livrare in picking + +**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_dropshipping/__init__.py b/deltatech_dropshipping/__init__.py new file mode 100644 index 0000000000..9e76ac0ac3 --- /dev/null +++ b/deltatech_dropshipping/__init__.py @@ -0,0 +1,4 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import models diff --git a/deltatech_dropshipping/__manifest__.py b/deltatech_dropshipping/__manifest__.py new file mode 100644 index 0000000000..c5a2cb3d6d --- /dev/null +++ b/deltatech_dropshipping/__manifest__.py @@ -0,0 +1,17 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details +{ + "name": "Deltatech Drop Shipping", + "summary": "Delivery address in picking", + "version": "17.0.1.0.0", + "author": "Terrabit, Dorin Hongu", + "website": "https://www.terrabit.ro", + "support": "odoo@terrabit.ro", + "category": "Warehouse", + "depends": ["stock_dropshipping"], + "data": ["views/stock_picking_view.xml"], + "license": "OPL-1", + "images": ["static/description/main_screenshot.png"], + "development_status": "Beta", + "maintainers": ["dhongu"], +} diff --git a/deltatech_dropshipping/__pycache__/__init__.cpython-310.pyc b/deltatech_dropshipping/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..ccb5d0c31f Binary files /dev/null and b/deltatech_dropshipping/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_dropshipping/i18n/ro.po b/deltatech_dropshipping/i18n/ro.po new file mode 100644 index 0000000000..568b12eda7 --- /dev/null +++ b/deltatech_dropshipping/i18n/ro.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * deltatech_dropshipping +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-03-11 11:18+0000\n" +"PO-Revision-Date: 2021-03-11 11:18+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: deltatech_dropshipping +#: model:ir.model.fields,field_description:deltatech_dropshipping.field_stock_picking__display_name +msgid "Display Name" +msgstr "Nume afișat" + +#. module: deltatech_dropshipping +#: model:ir.model.fields,field_description:deltatech_dropshipping.field_stock_picking__id +msgid "ID" +msgstr "" + +#. module: deltatech_dropshipping +#: model:ir.model.fields,field_description:deltatech_dropshipping.field_stock_picking____last_update +msgid "Last Modified on" +msgstr "Ultima modificare la" + +#. module: deltatech_dropshipping +#: model:ir.model.fields,field_description:deltatech_dropshipping.field_stock_picking__partner_shipping_id +msgid "Shipping address" +msgstr "Livrare la" + +#. module: deltatech_dropshipping +#: model:ir.model,name:deltatech_dropshipping.model_stock_picking +msgid "Transfer" +msgstr "" \ No newline at end of file diff --git a/deltatech_dropshipping/models/__init__.py b/deltatech_dropshipping/models/__init__.py new file mode 100644 index 0000000000..fa34ad0eec --- /dev/null +++ b/deltatech_dropshipping/models/__init__.py @@ -0,0 +1,4 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from . import stock_picking diff --git a/deltatech_dropshipping/models/__pycache__/__init__.cpython-310.pyc b/deltatech_dropshipping/models/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000..c0665148d3 Binary files /dev/null and b/deltatech_dropshipping/models/__pycache__/__init__.cpython-310.pyc differ diff --git a/deltatech_dropshipping/models/__pycache__/stock_picking.cpython-310.pyc b/deltatech_dropshipping/models/__pycache__/stock_picking.cpython-310.pyc new file mode 100644 index 0000000000..58dbcc4c79 Binary files /dev/null and b/deltatech_dropshipping/models/__pycache__/stock_picking.cpython-310.pyc differ diff --git a/deltatech_dropshipping/models/stock_picking.py b/deltatech_dropshipping/models/stock_picking.py new file mode 100644 index 0000000000..1089106bbe --- /dev/null +++ b/deltatech_dropshipping/models/stock_picking.py @@ -0,0 +1,21 @@ +# © 2008-2021 Deltatech +# See README.rst file on addons root folder for license details + +from odoo import fields, models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + partner_shipping_id = fields.Many2one( + "res.partner", compute="_compute_delivery_address_id", string="Shipping address" + ) + + def _compute_delivery_address_id(self): + for picking in self: + if picking.picking_type_code == "outgoing": + picking.partner_shipping_id = picking.partner_id + else: + picking.partner_shipping_id = picking.picking_type_id.warehouse_id.partner_id + if picking.sale_id.partner_shipping_id: + picking.partner_shipping_id = picking.sale_id.partner_shipping_id diff --git a/deltatech_dropshipping/readme/DESCRIPTION.rst b/deltatech_dropshipping/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..921730b062 --- /dev/null +++ b/deltatech_dropshipping/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Features: + - Afisare adresa livrare in picking diff --git a/deltatech_dropshipping/static/description/icon.png b/deltatech_dropshipping/static/description/icon.png new file mode 100644 index 0000000000..36ef3b1179 Binary files /dev/null and b/deltatech_dropshipping/static/description/icon.png differ diff --git a/deltatech_dropshipping/static/description/index.html b/deltatech_dropshipping/static/description/index.html new file mode 100644 index 0000000000..deeb061ffe --- /dev/null +++ b/deltatech_dropshipping/static/description/index.html @@ -0,0 +1,416 @@ + + + + + + +Deltatech Drop Shipping + + + +
+

Deltatech Drop Shipping

+ + +

Beta dhongu/deltatech

+
+
Features:
+
    +
  • Afisare adresa livrare in picking
  • +
+
+
+

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_dropshipping/static/description/logo-terrabit.png b/deltatech_dropshipping/static/description/logo-terrabit.png new file mode 100644 index 0000000000..8b23ccdd37 Binary files /dev/null and b/deltatech_dropshipping/static/description/logo-terrabit.png differ diff --git a/deltatech_dropshipping/static/description/main_screenshot.png b/deltatech_dropshipping/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_dropshipping/static/description/main_screenshot.png differ diff --git a/deltatech_dropshipping/tests/__init__.py b/deltatech_dropshipping/tests/__init__.py new file mode 100644 index 0000000000..201bd6d6e1 --- /dev/null +++ b/deltatech_dropshipping/tests/__init__.py @@ -0,0 +1,3 @@ +# © 2008-2021 Deltatech +# Dorin Hongu + + + sale.order.form + sale.order + + + + +