Skip to content

Commit a808fd7

Browse files
[MIG] report_partner_address: Migration to 18.0
1 parent ab56b98 commit a808fd7

4 files changed

Lines changed: 27 additions & 37 deletions

File tree

report_partner_address/README.rst

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
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-
51
======================
62
Report Partner Address
73
======================
@@ -17,17 +13,17 @@ Report Partner Address
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
24-
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_partner_address
20+
:target: https://github.com/OCA/reporting-engine/tree/18.0/report_partner_address
2521
:alt: OCA/reporting-engine
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_partner_address
23+
:target: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_partner_address
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=18.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,9 +42,9 @@ to display addresses in multiple languages. This module fills that gap.
4642
Usage
4743
=====
4844

49-
- Go to the partner record.
50-
- Fill in Address Details, including translations for the active
51-
languages.
45+
- Go to the partner record.
46+
- Fill in Address Details, including translations for the active
47+
languages.
5248

5349
The address in reports and portal pages will use the value from Address
5450
Details.
@@ -61,7 +57,7 @@ Bug Tracker
6157
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
6258
In case of trouble, please check there if your issue has already been reported.
6359
If you spotted it first, help us to smash it by providing a detailed and welcomed
64-
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
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**>`_.
6561

6662
Do not contact contributors directly about support or help with technical issues.
6763

@@ -76,10 +72,10 @@ Authors
7672
Contributors
7773
------------
7874

79-
- Quartile <https://www.quartile.co>
75+
- Quartile <https://www.quartile.co>
8076

81-
- Yoshi Tashiro
82-
- Aung Ko Ko Lin
77+
- Yoshi Tashiro
78+
- Aung Ko Ko Lin
8379

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

106102
|maintainer-yostashiro| |maintainer-aungkokolin1997|
107103

108-
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_partner_address>`_ project on GitHub.
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.
109105

110106
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": "16.0.1.0.0",
6+
"version": "18.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/static/description/index.html

Lines changed: 12 additions & 18 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>README.rst</title>
6+
<title>Report Partner Address</title>
77
<style type="text/css">
88

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

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>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:7c019dbfd9524b0b0daaaafa5fbbc77df627c40d3bb1e1b6bf9bea2f5a224972
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/16.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-16-0/reporting-engine-16-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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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>
378373
<p>Adds a translatable Address Details field on partners for use in reports
379374
and portal.</p>
380375
<p>Odoo prints documents in the partner’s language but lacks a standard way
@@ -393,7 +388,7 @@ <h1>Report Partner Address</h1>
393388
</ul>
394389
</div>
395390
<div class="section" id="usage">
396-
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
391+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
397392
<ul class="simple">
398393
<li>Go to the partner record.</li>
399394
<li>Fill in Address Details, including translations for the active
@@ -404,23 +399,23 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
404399
<p>If Address Details is left blank, the standard address format is used.</p>
405400
</div>
406401
<div class="section" id="bug-tracker">
407-
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
402+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
408403
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
409404
In case of trouble, please check there if your issue has already been reported.
410405
If you spotted it first, help us to smash it by providing a detailed and welcomed
411-
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_partner_address%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
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>
412407
<p>Do not contact contributors directly about support or help with technical issues.</p>
413408
</div>
414409
<div class="section" id="credits">
415-
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
410+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
416411
<div class="section" id="authors">
417-
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
412+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
418413
<ul class="simple">
419414
<li>Quartile</li>
420415
</ul>
421416
</div>
422417
<div class="section" id="contributors">
423-
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
418+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
424419
<ul class="simple">
425420
<li>Quartile &lt;<a class="reference external" href="https://www.quartile.co">https://www.quartile.co</a>&gt;<ul>
426421
<li>Yoshi Tashiro</li>
@@ -430,7 +425,7 @@ <h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
430425
</ul>
431426
</div>
432427
<div class="section" id="maintainers">
433-
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
428+
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
434429
<p>This module is maintained by the OCA.</p>
435430
<a class="reference external image-reference" href="https://odoo-community.org">
436431
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -440,11 +435,10 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
440435
promote its widespread use.</p>
441436
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
442437
<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>
443-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/report_partner_address">OCA/reporting-engine</a> project on GitHub.</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>
444439
<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>
445440
</div>
446441
</div>
447442
</div>
448-
</div>
449443
</body>
450444
</html>

report_partner_address/views/res_partner_views.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
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"
10-
attrs="{'readonly':[('type','=','contact'),('parent_id','!=',False)]}"
10+
readonly="type =='contact' and parent_id != False"
1111
/>
1212
</xpath>
1313
</field>

0 commit comments

Comments
 (0)