Skip to content

Commit 1ab73d6

Browse files
[MIG] report_partner_address: Migration to 19.0
1 parent f8d9ed8 commit 1ab73d6

File tree

5 files changed

+31
-20
lines changed

5 files changed

+31
-20
lines changed

report_partner_address/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
======================
26
Report Partner Address
37
======================
@@ -13,17 +17,17 @@ Report Partner Address
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
20-
:target: https://github.com/OCA/reporting-engine/tree/18.0/report_partner_address
24+
:target: https://github.com/OCA/reporting-engine/tree/19.0/report_partner_address
2125
:alt: OCA/reporting-engine
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_partner_address
27+
:target: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_partner_address
2428
:alt: Translate me on Weblate
2529
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=19.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -57,7 +61,7 @@ Bug Tracker
5761
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
5862
In case of trouble, please check there if your issue has already been reported.
5963
If you spotted it first, help us to smash it by providing a detailed and welcomed
60-
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
64+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6165

6266
Do not contact contributors directly about support or help with technical issues.
6367

@@ -101,6 +105,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
101105

102106
|maintainer-yostashiro| |maintainer-aungkokolin1997|
103107

104-
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/18.0/report_partner_address>`_ project on GitHub.
108+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/19.0/report_partner_address>`_ project on GitHub.
105109

106110
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

report_partner_address/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Report Partner Address",
55
"summary": "Translatable partner address details for reports and portal",
6-
"version": "18.0.1.0.0",
6+
"version": "19.0.1.0.0",
77
"author": "Quartile, Odoo Community Association (OCA)",
88
"category": "Reporting",
99
"website": "https://github.com/OCA/reporting-engine",

report_partner_address/models/res_partner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class ResPartner(models.Model):
1212
store=True,
1313
readonly=False,
1414
translate=True,
15+
recursive=True,
1516
help="Custom address format used in reports and portal pages. "
1617
"When set, this replaces the standard address format for external display.",
1718
)

report_partner_address/static/description/index.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Report Partner Address</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="report-partner-address">
364-
<h1 class="title">Report Partner Address</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="report-partner-address">
370+
<h1>Report Partner Address</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:7c019dbfd9524b0b0daaaafa5fbbc77df627c40d3bb1e1b6bf9bea2f5a224972
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_partner_address"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_partner_address"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/19.0/report_partner_address"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_partner_address"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>Adds a translatable Address Details field on partners for use in reports
374379
and portal.</p>
375380
<p>Odoo prints documents in the partner’s language but lacks a standard way
@@ -388,7 +393,7 @@ <h1 class="title">Report Partner Address</h1>
388393
</ul>
389394
</div>
390395
<div class="section" id="usage">
391-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
396+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
392397
<ul class="simple">
393398
<li>Go to the partner record.</li>
394399
<li>Fill in Address Details, including translations for the active
@@ -399,23 +404,23 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
399404
<p>If Address Details is left blank, the standard address format is used.</p>
400405
</div>
401406
<div class="section" id="bug-tracker">
402-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
407+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
403408
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
404409
In case of trouble, please check there if your issue has already been reported.
405410
If you spotted it first, help us to smash it by providing a detailed and welcomed
406-
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
411+
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407412
<p>Do not contact contributors directly about support or help with technical issues.</p>
408413
</div>
409414
<div class="section" id="credits">
410-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
415+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
411416
<div class="section" id="authors">
412-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
417+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
413418
<ul class="simple">
414419
<li>Quartile</li>
415420
</ul>
416421
</div>
417422
<div class="section" id="contributors">
418-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
423+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
419424
<ul class="simple">
420425
<li>Quartile &lt;<a class="reference external" href="https://www.quartile.co">https://www.quartile.co</a>&gt;<ul>
421426
<li>Yoshi Tashiro</li>
@@ -425,7 +430,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
425430
</ul>
426431
</div>
427432
<div class="section" id="maintainers">
428-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
433+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
429434
<p>This module is maintained by the OCA.</p>
430435
<a class="reference external image-reference" href="https://odoo-community.org">
431436
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -435,10 +440,11 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
435440
promote its widespread use.</p>
436441
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
437442
<p><a class="reference external image-reference" href="https://github.com/yostashiro"><img alt="yostashiro" src="https://github.com/yostashiro.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/aungkokolin1997"><img alt="aungkokolin1997" src="https://github.com/aungkokolin1997.png?size=40px" /></a></p>
438-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/18.0/report_partner_address">OCA/reporting-engine</a> project on GitHub.</p>
443+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/19.0/report_partner_address">OCA/reporting-engine</a> project on GitHub.</p>
439444
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
440445
</div>
441446
</div>
442447
</div>
448+
</div>
443449
</body>
444450
</html>

report_partner_address/views/res_partner_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<field name="model">res.partner</field>
55
<field name="inherit_id" ref="base.view_partner_form" />
66
<field name="arch" type="xml">
7-
<xpath expr="//div[@class='o_address_format']" position="after">
7+
<xpath expr="//div[hasclass('o_address_format')]" position="after">
88
<field
99
name="address_details"
1010
readonly="type =='contact' and parent_id != False"

0 commit comments

Comments
 (0)