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] mrp_bom_notes_report: Add notes field in mrp_bom_report #506

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

====================
MRP BOM Notes Report
====================

Overview
========

The **MRP BOM Notes Report** module extends the **MRP BOM Report** functionality by adding the **Notes** field from the Bill of Materials (BOM) lines to the BOM report. This enables users to include additional notes or comments related to the BOM directly in the report.

Features
========

- **Notes in BOM Report**:

- The module adds the BOM line's **Notes** field to the BOM report, displaying any relevant comments or additional information in the final report.

- **Customization**:

- The report is customized by inheriting and modifying the default **MRP BOM Report** template, ensuring the display of notes in an organized manner.

- **Improved Reporting**:

- With this enhancement, users can generate BOM reports with added context, making it easier to understand specific instructions or details related to each BOM line.


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 <anajuaristi@avanzosc.es>
* Unai Beristain <unaiberistain@avanzosc.es>

For specific questions or support, please contact the contributors.

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.
17 changes: 17 additions & 0 deletions mrp_bom_notes_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "MRP BOM Notes Report",
"version": "16.0.1.0.0",
"category": "Manufacturing",
"author": "Avanzosc",
"license": "LGPL-3",
"depends": [
"mrp_bom_note",
"mrp_bom_report",
],
"data": [
"views/mrp_bom_report_templates.xml",
],
"installable": True,
"application": False,
"website": "https://github.com/avanzosc/mrp-addons",
}
10 changes: 10 additions & 0 deletions mrp_bom_notes_report/views/mrp_bom_report_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<odoo>
<template
id="report_mrp_bom_customized_document_inherit"
inherit_id="mrp_bom_report.report_mrp_bom_customized_document"
>
<xpath expr="//table" position="after">
<span t-esc="doc.notes or ''" />
</xpath>
</template>
</odoo>
6 changes: 6 additions & 0 deletions setup/mrp_bom_notes_report/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,
)
Loading