diff --git a/setup/stock_picking_report_cmr/odoo/addons/stock_picking_report_cmr b/setup/stock_picking_report_cmr/odoo/addons/stock_picking_report_cmr new file mode 120000 index 000000000..e7768f043 --- /dev/null +++ b/setup/stock_picking_report_cmr/odoo/addons/stock_picking_report_cmr @@ -0,0 +1 @@ +../../../../stock_picking_report_cmr \ No newline at end of file diff --git a/setup/stock_picking_report_cmr/setup.py b/setup/stock_picking_report_cmr/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_picking_report_cmr/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_picking_report_cmr/README.rst b/stock_picking_report_cmr/README.rst new file mode 100644 index 000000000..e69de29bb diff --git a/stock_picking_report_cmr/__init__.py b/stock_picking_report_cmr/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_picking_report_cmr/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_picking_report_cmr/__manifest__.py b/stock_picking_report_cmr/__manifest__.py new file mode 100644 index 000000000..35ecca6cf --- /dev/null +++ b/stock_picking_report_cmr/__manifest__.py @@ -0,0 +1,23 @@ +# © 2022 Roberto Lizana (Trey) +# License: LGPL-3 or later (https://www.gnu.org/licenses/lgpl.html). +{ + "name": "Print Formats Picking CMR", + "summary": "CMR Report from Picking", + "version": "14.0.1.0.0", + "category": "Warehouse Management", + "author": "Trey, " "Odoo Community Association (OCA)", + "license": "LGPL-3", + "website": "https://github.com/OCA/stock-logistics-reporting", + "contributors": ["AshishHirapara"], + "depends": [ + "stock", + "web", + ], + "data": [ + "data/report_paperformat.xml", + "views/report_cmr.xml", + "views/stock_picking_views.xml", + ], + "installable": True, + "application": True, +} diff --git a/stock_picking_report_cmr/data/report_paperformat.xml b/stock_picking_report_cmr/data/report_paperformat.xml new file mode 100644 index 000000000..fc96b8975 --- /dev/null +++ b/stock_picking_report_cmr/data/report_paperformat.xml @@ -0,0 +1,18 @@ + + + + CMR A4 + + A4 + 0 + 0 + Portrait + 7 + 7 + 7 + 7 + + 0 + 90 + + diff --git a/stock_picking_report_cmr/i18n/it.po b/stock_picking_report_cmr/i18n/it.po new file mode 100644 index 000000000..e69de29bb diff --git a/stock_picking_report_cmr/i18n/stock_picking_report_cmr.pot b/stock_picking_report_cmr/i18n/stock_picking_report_cmr.pot new file mode 100644 index 000000000..e69de29bb diff --git a/stock_picking_report_cmr/models/__init__.py b/stock_picking_report_cmr/models/__init__.py new file mode 100644 index 000000000..ae4c27227 --- /dev/null +++ b/stock_picking_report_cmr/models/__init__.py @@ -0,0 +1 @@ +from . import stock_picking diff --git a/stock_picking_report_cmr/models/stock_picking.py b/stock_picking_report_cmr/models/stock_picking.py new file mode 100644 index 000000000..87dc13992 --- /dev/null +++ b/stock_picking_report_cmr/models/stock_picking.py @@ -0,0 +1,11 @@ +from odoo import fields, models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + cmr_code = fields.Integer( + string="CMR Code", + default=0, + help="Code needed for CMR Report", + ) diff --git a/stock_picking_report_cmr/readme/CONTRIBUTORS.rst b/stock_picking_report_cmr/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..75e273768 --- /dev/null +++ b/stock_picking_report_cmr/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Roberto Lizana +* Ashish Hirpara diff --git a/stock_picking_report_cmr/readme/DESCRIPTION.rst b/stock_picking_report_cmr/readme/DESCRIPTION.rst new file mode 100644 index 000000000..7a0a5aced --- /dev/null +++ b/stock_picking_report_cmr/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows the printing of the CMR report from a given delivery note. diff --git a/stock_picking_report_cmr/readme/HISTORY.rst b/stock_picking_report_cmr/readme/HISTORY.rst new file mode 100644 index 000000000..f838e0c68 --- /dev/null +++ b/stock_picking_report_cmr/readme/HISTORY.rst @@ -0,0 +1,4 @@ +14.0.1.0.0 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Initial release diff --git a/stock_picking_report_cmr/readme/USAGE.rst b/stock_picking_report_cmr/readme/USAGE.rst new file mode 100644 index 000000000..87a3231b9 --- /dev/null +++ b/stock_picking_report_cmr/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use features of this module, you need to: + +#. First, fill in the "CMR Code" field. +#. Once you are in the delivery note, click on the "Print" drop-down menu and then select "CMR Report". diff --git a/stock_picking_report_cmr/static/description/icon.png b/stock_picking_report_cmr/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_picking_report_cmr/static/description/icon.png differ diff --git a/stock_picking_report_cmr/static/src/img/logo-cmr-blue.svg b/stock_picking_report_cmr/static/src/img/logo-cmr-blue.svg new file mode 100644 index 000000000..cd1d54444 --- /dev/null +++ b/stock_picking_report_cmr/static/src/img/logo-cmr-blue.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/stock_picking_report_cmr/static/src/img/logo-cmr-green.svg b/stock_picking_report_cmr/static/src/img/logo-cmr-green.svg new file mode 100644 index 000000000..1ec4f170c --- /dev/null +++ b/stock_picking_report_cmr/static/src/img/logo-cmr-green.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/stock_picking_report_cmr/static/src/img/logo-cmr-red.svg b/stock_picking_report_cmr/static/src/img/logo-cmr-red.svg new file mode 100644 index 000000000..948867ab8 --- /dev/null +++ b/stock_picking_report_cmr/static/src/img/logo-cmr-red.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/stock_picking_report_cmr/static/src/img/logo-cmr.svg b/stock_picking_report_cmr/static/src/img/logo-cmr.svg new file mode 100644 index 000000000..008f4a6f4 --- /dev/null +++ b/stock_picking_report_cmr/static/src/img/logo-cmr.svg @@ -0,0 +1,89 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/stock_picking_report_cmr/views/report_cmr.xml b/stock_picking_report_cmr/views/report_cmr.xml new file mode 100644 index 000000000..bccd1fc57 --- /dev/null +++ b/stock_picking_report_cmr/views/report_cmr.xml @@ -0,0 +1,1170 @@ + + + + + + + + + diff --git a/stock_picking_report_cmr/views/stock_picking_views.xml b/stock_picking_report_cmr/views/stock_picking_views.xml new file mode 100644 index 000000000..4a88b3691 --- /dev/null +++ b/stock_picking_report_cmr/views/stock_picking_views.xml @@ -0,0 +1,12 @@ + + + + stock.picking + + + + + + + +