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

[16.0][ADD] stock_picking_note_delivery: Add note field in report #3100

Merged
merged 2 commits into from
Jan 22, 2025
Merged
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
6 changes: 6 additions & 0 deletions setup/stock_picking_note_delivery/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,
)
67 changes: 67 additions & 0 deletions stock_picking_note_delivery/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://opensource.org/licenses/LGPL-3.0
:alt: License: LGPL-3

==========================================================
Stock Picking Note Delivery
==========================================================

Overview
========

The **Stock Picking Note Delivery** module adds a new internal note field to the **Delivery Document Report**. This note can be used to include important information that will appear on the picking operation sheet.

Features
========

- **Add Internal Note Field**:
- Enhances the **Delivery Document Report** with a `note` field for adding internal comments.

- **Printable Notes**:
- Notes added in this field will be displayed on the picking operation sheet.

Usage
=====

1. **Install the Module**:
- Install the **Stock Picking Note Delivery** module via the Apps menu.

2. **Add Notes**:
- Navigate to the delivery document and use the new `note` field to add internal comments.

3. **Print Notes**:
- Verify that the notes appear on the picking operation sheet when printed.

Configuration
=============

No additional configuration is required for this module. Once installed, the `note` field will automatically be available in the **Delivery Document Report** view.

Testing
=======

Test the following to ensure the module works as expected:

- Verify that the `note` field is visible and editable in the **Delivery Document Report** view.
- Check that the notes appear correctly on the picking operation sheet.

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

If you encounter any issues, please report them on the GitHub repository at `GitHub Issues <https://github.com/avanzosc/odoo-addons/issues>`_.

Credits
=======

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

* Ana Juaristi <[email protected]>
* Unai Beristain <[email protected]>

For specific questions regarding this module, please contact the contributors. For support, please use the official issue tracker.

License
=======

This project is licensed under the LGPL-3 License. For more details, refer to the LICENSE file or visit <https://opensource.org/licenses/LGPL-3.0>.
Empty file.
14 changes: 14 additions & 0 deletions stock_picking_note_delivery/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Stock Picking Note Delivery",
"version": "16.0.1.0.0",
"category": "Stock",
"author": "Avanzosc",
"license": "LGPL-3",
"depends": ["stock"],
"data": [
"views/stock_picking_note_delivery_view.xml",
],
"installable": True,
"application": False,
"website": "https://github.com/avanzosc/odoo-addons",
}
21 changes: 21 additions & 0 deletions stock_picking_note_delivery/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_note_delivery
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-20 14:33+0000\n"
"PO-Revision-Date: 2025-01-20 14:33+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: stock_picking_note_delivery
#: model_terms:ir.ui.view,arch_db:stock_picking_note_delivery.stock_report_delivery_document_inherit
msgid "Note:"
msgstr "Nota:"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template
id="stock_report_delivery_document_inherit"
inherit_id="stock.report_delivery_document"
>
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<div t-if="o.note">
Note: <span t-field="o.note" />
</div>
</xpath>
</template>
</odoo>
Loading