Skip to content
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
95 changes: 95 additions & 0 deletions purchase_report_shipping_address/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================================
Purchase Report Shipping Address
================================

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

.. |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/license-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%2Fpurchase--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-reporting/tree/19.0/purchase_report_shipping_address
:alt: OCA/purchase-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-reporting-19-0/purchase-reporting-19-0-purchase_report_shipping_address
: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/purchase-reporting&target_branch=19.0
:alt: Try me on Runboat

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

This module adds the translatable Warehouse Address Details field in
warehouse to show in purchase reports.

Purchase documents are printed in supplier's language, however Odoo by
default does not come with the ability to present the warehouse address
in different languages. This module intends to take care of this
shortcoming.

**Table of contents**

.. contents::
:local:

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

#. Go to *Inventory > Configuration > Warehouses* and open a warehouse
record for which the address presentation should be adjusted for
purchase reports. #. Update Warehouse Address Details field.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-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/purchase-reporting/issues/new?body=module:%20purchase_report_shipping_address%0Aversion:%2019.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 Limited

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

- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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.

This module is part of the `OCA/purchase-reporting <https://github.com/OCA/purchase-reporting/tree/19.0/purchase_report_shipping_address>`_ 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 purchase_report_shipping_address/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions purchase_report_shipping_address/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Purchase Report Shipping Address",
"version": "19.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/purchase-reporting",
"license": "AGPL-3",
"author": "Quartile Limited, Odoo Community Association (OCA)",
"depends": ["purchase_stock"],
"data": [
"views/stock_warehouse_views.xml",
"reports/purchase_order_templates.xml",
"reports/purchase_quotation_templates.xml",
],
"installable": True,
}
27 changes: 27 additions & 0 deletions purchase_report_shipping_address/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_report_shipping_address
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-26 14:38+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: purchase_report_shipping_address
#: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse
msgid "Warehouse"
msgstr "Magazzino"

#. module: purchase_report_shipping_address
#: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details
msgid "Warehouse Address Details"
msgstr "Dettagli indirizzo magazzino"
25 changes: 25 additions & 0 deletions purchase_report_shipping_address/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_report_shipping_address
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"

#. module: purchase_report_shipping_address
#: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse
msgid "Warehouse"
msgstr ""

#. module: purchase_report_shipping_address
#: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details
msgid "Warehouse Address Details"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_report_shipping_address
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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: purchase_report_shipping_address
#: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse
msgid "Warehouse"
msgstr ""

#. module: purchase_report_shipping_address
#: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details
msgid "Warehouse Address Details"
msgstr ""
1 change: 1 addition & 0 deletions purchase_report_shipping_address/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_warehouse
12 changes: 12 additions & 0 deletions purchase_report_shipping_address/models/stock_warehouse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockWarehouse(models.Model):
_inherit = "stock.warehouse"

warehouse_address_details = fields.Html(
translate=True,
)
3 changes: 3 additions & 0 deletions purchase_report_shipping_address/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions purchase_report_shipping_address/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#\. Go to *Inventory \> Configuration \> Warehouses* and open a
warehouse record for which the address presentation should be adjusted
for purchase reports. \#. Update Warehouse Address Details field.
2 changes: 2 additions & 0 deletions purchase_report_shipping_address/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
7 changes: 7 additions & 0 deletions purchase_report_shipping_address/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module adds the translatable Warehouse Address Details field in
warehouse to show in purchase reports.

Purchase documents are printed in supplier's language, however Odoo by
default does not come with the ability to present the warehouse address
in different languages. This module intends to take care of this
shortcoming.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="report_purchaseorder_document_inherit"
inherit_id="purchase_stock.report_purchaseorder_document"
>
<xpath
expr="//div[@t-if='o.picking_type_id and o.picking_type_id.warehouse_id']"
position="attributes"
>
<attribute
name="t-att-style"
>'display: none!important' if o.picking_type_id.warehouse_id.warehouse_address_details else ''</attribute>
</xpath>
<xpath
expr="//div[@t-if='o.picking_type_id and o.picking_type_id.warehouse_id']"
position="after"
>
<div t-if="o.picking_type_id.warehouse_id.warehouse_address_details">
<span
t-field="o.picking_type_id.warehouse_id.warehouse_address_details"
/>
</div>
</xpath>
</template>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="report_purchasequotation_document_inherit"
inherit_id="purchase_stock.report_purchasequotation_document"
>
<xpath
expr="//div[@t-if='o.picking_type_id and o.picking_type_id.warehouse_id']"
position="attributes"
>
<attribute
name="t-att-style"
>'display: none!important' if o.picking_type_id.warehouse_id.warehouse_address_details else ''</attribute>
</xpath>
<xpath
expr="//div[@t-if='o.picking_type_id and o.picking_type_id.warehouse_id']"
position="after"
>
<div t-if="o.picking_type_id.warehouse_id.warehouse_address_details">
<span
t-field="o.picking_type_id.warehouse_id.warehouse_address_details"
/>
</div>
</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