Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] [17.0] stock_picking_report_external_note #323

Open
wants to merge 4 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions stock_picking_report_external_note/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
==================================
Stock Picking Report External Note
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:074177c68065fb08420562308c2b01a7c826c4eefad03730566af5609807ae4e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-reporting/tree/17.0/stock_picking_report_external_note
:alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-17-0/stock-logistics-reporting-17-0-stock_picking_report_external_note
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of stock picking to support
external notes and to allow you to display them in the external reports.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to stock picking
2. Fill *External notes* field on the Notes tab
3. Print the Delivery Slip report and check that *External notes* has
been printed

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/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 <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_external_note%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Moduon

Contributors
------------

- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
:target: https://github.com/Shide
:alt: Shide

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Shide|

This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/17.0/stock_picking_report_external_note>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_picking_report_external_note/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions stock_picking_report_external_note/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)

{
"name": "Stock Picking Report External Note",
"summary": """Adds a note in Stock Picking shown on external reports like
Delivery Slip""",
"version": "17.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory/Delivery",
"website": "https://github.com/OCA/stock-logistics-reporting",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["Shide"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["stock"],
"data": ["report/report_deliveryslip.xml", "views/stock_picking_views.xml"],
}
44 changes: 44 additions & 0 deletions stock_picking_report_external_note/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_report_external_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-23 09:00+0000\n"
"PO-Revision-Date: 2023-03-23 10:01+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 3.1.1\n"

#. module: stock_picking_report_external_note
#: model_terms:ir.ui.view,arch_db:stock_picking_report_external_note.view_picking_form
msgid "Add an external note that will be printed on the Delivery Slip report"
msgstr ""
"Añade una nota externa que será impresa en el informe de Albarán de entrega"

#. module: stock_picking_report_external_note
#: model:ir.model.fields,field_description:stock_picking_report_external_note.field_stock_picking__external_note
msgid "External Note"
msgstr "Nota externa"

#. module: stock_picking_report_external_note
#: model:ir.model.fields,help:stock_picking_report_external_note.field_stock_picking__external_note
msgid "External note to be printed in external reports like Delivery Slip"
msgstr ""
"Nota externa que será impresa en los informes externos como el Albarán de "
"entrega"

#. module: stock_picking_report_external_note
#: model:ir.model,name:stock_picking_report_external_note.model_stock_picking
msgid "Transfer"
msgstr "Albarán"

#~ msgid "Note"
#~ msgstr "Nota"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_report_external_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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: stock_picking_report_external_note
#: model_terms:ir.ui.view,arch_db:stock_picking_report_external_note.view_picking_form
msgid "Add an external note that will be printed on the Delivery Slip report"
msgstr ""

#. module: stock_picking_report_external_note
#: model:ir.model.fields,field_description:stock_picking_report_external_note.field_stock_picking__external_note
msgid "External Note"
msgstr ""

#. module: stock_picking_report_external_note
#: model:ir.model.fields,help:stock_picking_report_external_note.field_stock_picking__external_note
msgid "External note to be printed in external reports like Delivery Slip"
msgstr ""

#. module: stock_picking_report_external_note
#: model:ir.model,name:stock_picking_report_external_note.model_stock_picking
msgid "Transfer"
msgstr ""
1 change: 1 addition & 0 deletions stock_picking_report_external_note/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking
13 changes: 13 additions & 0 deletions stock_picking_report_external_note/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)


from odoo import fields, models


class StockPicking(models.Model):
_inherit = "stock.picking"

external_note = fields.Html(
help="External note to be printed in external reports like Delivery Slip",
)
3 changes: 3 additions & 0 deletions stock_picking_report_external_note/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions stock_picking_report_external_note/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Eduardo de Miguel ([Moduon](https://www.moduon.team/))
2 changes: 2 additions & 0 deletions stock_picking_report_external_note/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of stock picking to support
external notes and to allow you to display them in the external reports.
6 changes: 6 additions & 0 deletions stock_picking_report_external_note/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To use this module, you need to:

1. Go to stock picking
2. Fill *External notes* field on the Notes tab
3. Print the Delivery Slip report and check that *External notes* has
been printed
13 changes: 13 additions & 0 deletions stock_picking_report_external_note/report/report_deliveryslip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2023 Moduon Team S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) -->
<odoo>
<template
id="report_delivery_sticker_document"
inherit_id="stock.report_delivery_document"
>
<xpath expr="//div[hasclass('page')]" position="inside">
<div t-if="o.external_note" t-field="o.external_note" class="mt-5" />
</xpath>
</template>
</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading