Skip to content

Commit af64eb3

Browse files
committed
[MIG] pos_hide_partner_info: migration to 16.0
1 parent f7a64e3 commit af64eb3

File tree

8 files changed

+100
-86
lines changed

8 files changed

+100
-86
lines changed

pos_hide_partner_info/README.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@ POS - Hide Partner Info
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
20-
:target: https://github.com/OCA/pos/tree/12.0/pos_hide_partner_info
20+
:target: https://github.com/OCA/pos/tree/16.0/pos_hide_partner_info
2121
:alt: OCA/pos
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_hide_partner_info
23+
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_hide_partner_info
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=12.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module :
32-
- hides phone and address field in pos customer list
31+
This module hides the phone and address fields in PoS customer list.
3332

3433
**Table of contents**
3534

@@ -42,7 +41,7 @@ Bug Tracker
4241
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
4342
In case of trouble, please check there if your issue has already been reported.
4443
If you spotted it first, help us to smash it by providing a detailed and welcomed
45-
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_hide_partner_info%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_hide_partner_info%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4645

4746
Do not contact contributors directly about support or help with technical issues.
4847

@@ -74,6 +73,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7473
mission is to support the collaborative development of Odoo features and
7574
promote its widespread use.
7675

77-
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_hide_partner_info>`_ project on GitHub.
76+
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_hide_partner_info>`_ project on GitHub.
7877

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

pos_hide_partner_info/__manifest__.py

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
1-
# Copyright 2017 - 2020 BEES coop SCRLfs
2-
# - Elouan Lebars <[email protected]>
3-
# - Rémy Taymans <[email protected]>
4-
# - Vincent Van Rossem <[email protected]>
5-
# - Elise Dupont
6-
# - Thibault François
7-
# - Grégoire Leeuwerck
8-
# - Houssine Bakkali <[email protected]>
9-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
1+
# SPDX-FileCopyrightText: 2017 - 2020 BEES coop SCRLfs
2+
# SPDX-FileContributor: Elouan Lebars <[email protected]>
3+
# SPDX-FileContributor: Rémy Taymans <[email protected]>
4+
# SPDX-FileContributor: Vincent Van Rossem <[email protected]>
5+
# SPDX-FileContributor: Elise Dupont
6+
# SPDX-FileContributor: Thibault François
7+
# SPDX-FileContributor: Grégoire Leeuwerck
8+
# SPDX-FileContributor: Houssine Bakkali <[email protected]>
9+
#
10+
# SPDX-License-Identifier: AGPL-3.0-or-later
11+
1012
{
1113
"name": "POS - Hide Partner Info",
12-
"summary": """Hides phone and address field in pos customer list.""",
13-
"author": "BEES coop - Cellule IT,"
14-
" Coop IT Easy SC,"
15-
"Odoo Community Association (OCA)",
16-
"website": "https://github.com/OCA/pos",
14+
"summary": "Hide phone and address fields in PoS customer list",
15+
"version": "16.0.1.0.0",
1716
"category": "Point Of Sale",
18-
"version": "12.0.2.0.1",
19-
"depends": ["point_of_sale"],
20-
"qweb": ["static/src/xml/templates.xml"],
21-
"installable": True,
17+
"website": "https://github.com/OCA/pos",
18+
"author": "BEES coop - Cellule IT, Coop IT Easy SC, Odoo Community Association (OCA)",
2219
"license": "AGPL-3",
20+
"depends": [
21+
"point_of_sale",
22+
],
23+
"assets": {
24+
"point_of_sale.assets": [
25+
"pos_hide_partner_info/static/src/xml/**/*.xml",
26+
],
27+
},
28+
# ensure it is loaded after other modules, like pos_membership, which
29+
# depend on removed fields to be there when patching the qweb templates.
30+
"sequence": 150,
2331
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
This module :
2-
- hides phone and address field in pos customer list
1+
This module hides the phone and address fields in PoS customer list.

pos_hide_partner_info/static/description/index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -369,9 +368,8 @@ <h1 class="title">POS - Hide Partner Info</h1>
369368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370369
!! source digest: sha256:f9665df958eb28056a581851f1734aee1e9d0d935dc56e0f19e99cd0caf57a66
371370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/pos/tree/12.0/pos_hide_partner_info"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_hide_partner_info"><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/pos&amp;target_branch=12.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>This module :
374-
- hides phone and address field in pos customer list</p>
371+
<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/pos/tree/16.0/pos_hide_partner_info"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_hide_partner_info"><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/pos&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>This module hides the phone and address fields in PoS customer list.</p>
375373
<p><strong>Table of contents</strong></p>
376374
<div class="contents local topic" id="contents">
377375
<ul class="simple">
@@ -389,7 +387,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
389387
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>.
390388
In case of trouble, please check there if your issue has already been reported.
391389
If you spotted it first, help us to smash it by providing a detailed and welcomed
392-
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_hide_partner_info%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
390+
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_hide_partner_info%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
393391
<p>Do not contact contributors directly about support or help with technical issues.</p>
394392
</div>
395393
<div class="section" id="credits">
@@ -415,7 +413,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
415413
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
416414
mission is to support the collaborative development of Odoo features and
417415
promote its widespread use.</p>
418-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_hide_partner_info">OCA/pos</a> project on GitHub.</p>
416+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/16.0/pos_hide_partner_info">OCA/pos</a> project on GitHub.</p>
419417
<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>
420418
</div>
421419
</div>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates id="template">
3+
4+
<t t-inherit="point_of_sale.PartnerDetailsEdit" t-inherit-mode="extension" owl="1">
5+
<xpath
6+
expr="//div[hasclass('partner-detail')]/input[@name='street']/.."
7+
position="replace"
8+
/>
9+
<xpath
10+
expr="//div[hasclass('partner-detail')]/input[@name='city']/.."
11+
position="replace"
12+
/>
13+
<xpath
14+
expr="//div[hasclass('partner-detail')]/input[@name='zip']/.."
15+
position="replace"
16+
/>
17+
<xpath
18+
expr="//div[hasclass('partner-detail')]/select[@name='state_id']/.."
19+
position="replace"
20+
/>
21+
<xpath
22+
expr="//div[hasclass('partner-detail')]/select[@name='country_id']/.."
23+
position="replace"
24+
/>
25+
<xpath
26+
expr="//div[hasclass('partner-detail')]/input[@name='email']/.."
27+
position="replace"
28+
/>
29+
<xpath
30+
expr="//div[hasclass('partner-detail')]/input[@name='phone']/.."
31+
position="replace"
32+
/>
33+
<xpath
34+
expr="//div[hasclass('partner-detail')]/input[@name='mobile']/.."
35+
position="replace"
36+
/>
37+
</t>
38+
39+
</templates>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates id="template">
3+
4+
<t t-inherit="point_of_sale.PartnerLine" t-inherit-mode="extension" owl="1">
5+
<xpath expr="//td/t[@t-esc='shortAddress']/.." position="replace" />
6+
<xpath expr="//td[hasclass('partner-line-email')]" position="replace" />
7+
<xpath
8+
expr="//td/t[@t-esc=&quot;props.partner.zip or ''&quot;]/.."
9+
position="replace"
10+
/>
11+
</t>
12+
13+
</templates>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates id="template">
3+
4+
<t t-inherit="point_of_sale.PartnerListScreen" t-inherit-mode="extension" owl="1">
5+
<xpath expr="//th[text()='Address']" position="replace" />
6+
<xpath expr="//th[hasclass('partner-line-email')]" position="replace" />
7+
<xpath expr="//th[text()='ZIP']" position="replace" />
8+
<xpath expr="//div[hasclass('button', 'more-info')]" position="replace" />
9+
</t>
10+
11+
</templates>

pos_hide_partner_info/static/src/xml/templates.xml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)