Skip to content

Commit

Permalink
[4851][ADD] purchase_report_interanal_reference (#96)
Browse files Browse the repository at this point in the history
Fast tracking.
  • Loading branch information
yostashiro authored Sep 17, 2024
1 parent c4dbecb commit 3db439b
Show file tree
Hide file tree
Showing 11 changed files with 564 additions and 0 deletions.
65 changes: 65 additions & 0 deletions purchase_report_internal_reference/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
==================================
Purchase Report Internal Reference
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fd3601661554756bb0ba9243298326370168ba8c639f27196d43a354483f1bbf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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-qrtl%2Faxls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/axls-custom/tree/16.0/purchase_report_internal_reference
:alt: qrtl/axls-custom

|badge1| |badge2| |badge3|

This module adds the internal reference as a column in the table of
purchase reports.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

Vendors sometimes need to know their clients' part numbers for printing
on product labels, delivery slips, and other documents. Standard Odoo
does not support this when vendor product codes are set for products.
This module adds the internal reference value as a column named Buyer
Part No. in the table of purchase reports to address this need.

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

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/axls-custom/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/qrtl/axls-custom/issues/new?body=module:%20purchase_report_internal_reference%0Aversion:%2016.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
-------

* Quartile

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

This module is part of the `qrtl/axls-custom <https://github.com/qrtl/axls-custom/tree/16.0/purchase_report_internal_reference>`_ project on GitHub.

You are welcome to contribute.
Empty file.
17 changes: 17 additions & 0 deletions purchase_report_internal_reference/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Purchase Report Internal Reference",
"version": "16.0.1.0.0",
"category": "Purchases",
"license": "AGPL-3",
"author": "Quartile",
"website": "https://www.quartile.co",
"depends": ["purchase"],
"data": [
"reports/purchase_order_templates.xml",
"reports/purchase_quotation_templates.xml",
],
"installable": True,
}
22 changes: 22 additions & 0 deletions purchase_report_internal_reference/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_report_internal_reference
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-11 09:14+0000\n"
"PO-Revision-Date: 2024-07-11 09:14+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: purchase_report_internal_reference
#: model_terms:ir.ui.view,arch_db:purchase_report_internal_reference.report_purchaseorder_document_inherit
#: model_terms:ir.ui.view,arch_db:purchase_report_internal_reference.report_purchasequotation_document_inherit
msgid "<strong>Buyer Part No.</strong>"
msgstr "<strong>発注社品番</strong>"
1 change: 1 addition & 0 deletions purchase_report_internal_reference/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Vendors sometimes need to know their clients' part numbers for printing on product labels, delivery slips, and other documents. Standard Odoo does not support this when vendor product codes are set for products. This module adds the internal reference value as a column named Buyer Part No. in the table of purchase reports to address this need.
2 changes: 2 additions & 0 deletions purchase_report_internal_reference/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds the internal reference as a column in the table of
purchase reports.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template
id="report_purchaseorder_document_inherit"
inherit_id="purchase.report_purchaseorder_document"
>
<xpath expr="//th[@name='th_description']" position="after">
<th name="th_internal_reference"><strong>Buyer Part No.</strong></th>
</xpath>
<xpath expr="//td[@id='product']" position="after">
<td class="text-center">
<span t-field="line.product_id.default_code" />
</td>
</xpath>
</template>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template
id="report_purchasequotation_document_inherit"
inherit_id="purchase.report_purchasequotation_document"
>
<xpath expr="//th[@name='th_description']" position="after">
<th name="th_internal_reference"><strong>Buyer Part No.</strong></th>
</xpath>
<xpath expr="//td[@id='product']" position="after">
<td class="text-center">
<span t-field="order_line.product_id.default_code" />
</td>
</xpath>
</template>
</odoo>
Loading

0 comments on commit 3db439b

Please sign in to comment.