Skip to content

Commit

Permalink
[ADD][14.0] stock_picking_report_cmr
Browse files Browse the repository at this point in the history
initial commit

This module allows the printing of the CMR report from a given delivery note.
  • Loading branch information
AshishHirapara committed Sep 12, 2022
1 parent dd95adb commit 87fc631
Show file tree
Hide file tree
Showing 21 changed files with 1,416 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_report_cmr/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Empty file.
1 change: 1 addition & 0 deletions stock_picking_report_cmr/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions stock_picking_report_cmr/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
18 changes: 18 additions & 0 deletions stock_picking_report_cmr/data/report_paperformat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="paperformat_cmr" model="report.paperformat">
<field name="name">CMR A4</field>
<field name="default" eval="False" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">7</field>
<field name="margin_bottom">7</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">0</field>
<field name="dpi">90</field>
</record>
</odoo>
Empty file.
Empty file.
1 change: 1 addition & 0 deletions stock_picking_report_cmr/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking
11 changes: 11 additions & 0 deletions stock_picking_report_cmr/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -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",
)
2 changes: 2 additions & 0 deletions stock_picking_report_cmr/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Roberto Lizana
* Ashish Hirpara <ashish.hirapara1995@gmail.com>
1 change: 1 addition & 0 deletions stock_picking_report_cmr/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows the printing of the CMR report from a given delivery note.
4 changes: 4 additions & 0 deletions stock_picking_report_cmr/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
14.0.1.0.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Initial release
4 changes: 4 additions & 0 deletions stock_picking_report_cmr/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -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".
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions stock_picking_report_cmr/static/src/img/logo-cmr-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions stock_picking_report_cmr/static/src/img/logo-cmr-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions stock_picking_report_cmr/static/src/img/logo-cmr-red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 87fc631

Please sign in to comment.