Skip to content

Commit 9daf5c1

Browse files
committed
[MIG] pos_partner_no_create: Migration to 16.0
1 parent 79b049d commit 9daf5c1

File tree

7 files changed

+37
-59
lines changed

7 files changed

+37
-59
lines changed

pos_partner_no_create/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ POS - Forbid New Customer Creation
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_partner_no_create
20+
:target: https://github.com/OCA/pos/tree/16.0/pos_partner_no_create
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_partner_no_create
23+
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_partner_no_create
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|
@@ -42,7 +42,7 @@ Bug Tracker
4242
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
4343
In case of trouble, please check there if your issue has already been reported.
4444
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_partner_no_create%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45+
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_partner_no_create%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4646

4747
Do not contact contributors directly about support or help with technical issues.
4848

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

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

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

pos_partner_no_create/__manifest__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
" Coop IT Easy SC",
99
"website": "https://github.com/OCA/pos",
1010
"category": "Point Of Sale",
11-
"version": "12.0.2.0.2",
11+
"version": "16.0.1.0.0",
1212
"depends": ["point_of_sale"],
13-
"qweb": ["static/src/xml/templates.xml"],
13+
"assets": {
14+
"point_of_sale.assets": [
15+
"pos_partner_no_create/static/src/xml/PartnerListScreen.xml",
16+
],
17+
},
1418
"installable": True,
1519
"license": "AGPL-3",
1620
}

pos_partner_no_create/i18n/it.po

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
# Translation of Odoo Server.
22
# This file contains the translation of the following modules:
3-
# * pos_partner_no_create
43
#
54
msgid ""
65
msgstr ""
7-
"Project-Id-Version: Odoo Server 12.0\n"
6+
"Project-Id-Version: Odoo Server 16.0\n"
87
"Report-Msgid-Bugs-To: \n"
9-
"Last-Translator: <>\n"
8+
"Last-Translator: \n"
109
"Language-Team: \n"
1110
"MIME-Version: 1.0\n"
1211
"Content-Type: text/plain; charset=UTF-8\n"
1312
"Content-Transfer-Encoding: \n"
1413
"Plural-Forms: \n"
15-
16-
#. module: pos_partner_no_create
17-
#. openerp-web
18-
#: code:addons/pos_partner_no_create/static/src/xml/templates.xml:6
19-
#, python-format
20-
msgid "oe_hidden"
21-
msgstr ""
22-

pos_partner_no_create/static/description/index.html

Lines changed: 10 additions & 8 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>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,7 +369,7 @@ <h1 class="title">POS - Forbid New Customer Creation</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:34a9b7eb87d1d9bda63a134cad3c620cff1f415745247e43c6e566e4fb4716f6
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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_partner_no_create"><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_partner_no_create"><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>
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/16.0/pos_partner_no_create"><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_partner_no_create"><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>
373373
<p>This module :
374374
- do not allow customer creation from the POS</p>
375375
<p><strong>Table of contents</strong></p>
@@ -389,7 +389,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
389389
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>.
390390
In case of trouble, please check there if your issue has already been reported.
391391
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_partner_no_create%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
392+
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_partner_no_create%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
393393
<p>Do not contact contributors directly about support or help with technical issues.</p>
394394
</div>
395395
<div class="section" id="credits">
@@ -411,11 +411,13 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
411411
<div class="section" id="maintainers">
412412
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
413413
<p>This module is maintained by the OCA.</p>
414-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
414+
<a class="reference external image-reference" href="https://odoo-community.org">
415+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
416+
</a>
415417
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
416418
mission is to support the collaborative development of Odoo features and
417419
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_partner_no_create">OCA/pos</a> project on GitHub.</p>
420+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/16.0/pos_partner_no_create">OCA/pos</a> project on GitHub.</p>
419421
<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>
420422
</div>
421423
</div>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates id="template" xml:space="preserve">
3+
4+
<t
5+
t-name="PartnerListScreenNoCreate"
6+
t-inherit="point_of_sale.PartnerListScreen"
7+
t-inherit-mode="extension"
8+
owl="1"
9+
>
10+
<xpath expr="//div[hasclass('new-customer')]" position="attributes">
11+
<attribute name="class">oe_hidden</attribute>
12+
</xpath>
13+
</t>
14+
</templates>

pos_partner_no_create/static/src/xml/templates.xml

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

0 commit comments

Comments
 (0)