Skip to content

Commit

Permalink
[4500][ADD] report_company_details_translatable (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
yostashiro authored Apr 18, 2024
1 parent aba723e commit 178453e
Show file tree
Hide file tree
Showing 12 changed files with 595 additions and 0 deletions.
76 changes: 76 additions & 0 deletions report_company_details_translatable/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
===================================
Report Company Details Translatable
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:23cd9ab4a60cc8048ecb06552462e9e89c86283efaf6347c71543fcefd948152
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Freporting--engine-lightgray.png?logo=github
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_company_details_translatable
:alt: OCA/reporting-engine
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_company_details_translatable
: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/reporting-engine&target_branch=16.0
:alt: Try me on Runboat

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

This module allows to translate the company details to show in PDF reports.

In some countries where the dominant language is not based on Roman alphabet,
it is often necessary to be able to print the company details according to the partner's language.
In case of Japan, typically Japanese for domestic transactions, and English for international ones, for example.
This module intends to cater to this requirement.

**Table of contents**

.. contents::
:local:

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

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

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/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_company_details_translatable>`_ 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 report_company_details_translatable/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions report_company_details_translatable/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2022 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Report Company Details Translatable",
"version": "16.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/reporting-engine",
"license": "AGPL-3",
"author": "Quartile Limited, Odoo Community Association (OCA)",
"depends": ["base"],
"installable": True,
}
32 changes: 32 additions & 0 deletions report_company_details_translatable/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_company_details_translatable
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-01-15 09:37+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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: report_company_details_translatable
#: model:ir.model,name:report_company_details_translatable.model_res_company
msgid "Companies"
msgstr "Aziende"

#. module: report_company_details_translatable
#: model:ir.model.fields,field_description:report_company_details_translatable.field_res_company__company_details
msgid "Company Details"
msgstr "Dettagli azienda"

#. module: report_company_details_translatable
#: model:ir.model.fields,help:report_company_details_translatable.field_res_company__company_details
msgid "Header text displayed at the top of all reports."
msgstr "Testo testata visualizzato sulla sommità di ogni resoconto."
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_company_details_translatable
#
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: report_company_details_translatable
#: model:ir.model,name:report_company_details_translatable.model_res_company
msgid "Companies"
msgstr ""

#. module: report_company_details_translatable
#: model:ir.model.fields,field_description:report_company_details_translatable.field_res_company__company_details
msgid "Company Details"
msgstr ""

#. module: report_company_details_translatable
#: model:ir.model.fields,help:report_company_details_translatable.field_res_company__company_details
msgid "Header text displayed at the top of all reports."
msgstr ""
1 change: 1 addition & 0 deletions report_company_details_translatable/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_company
13 changes: 13 additions & 0 deletions report_company_details_translatable/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2022 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

company_details = fields.Html(
translate=True,
sanitize=False,
)
6 changes: 6 additions & 0 deletions report_company_details_translatable/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This module allows to translate the company details to show in PDF reports.

In some countries where the dominant language is not based on Roman alphabet,
it is often necessary to be able to print the company details according to the partner's language.
In case of Japan, typically Japanese for domestic transactions, and English for international ones, for example.
This module intends to cater to this requirement.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 178453e

Please sign in to comment.