Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][REF] beesdoo_product_info_screen -> product_info_screen #494

Open
wants to merge 4 commits into
base: 12.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions beesdoo_product_info_screen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
30 changes: 15 additions & 15 deletions beesdoo_product_info_screen/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Copyright 2021 Coop IT Easy SCRL fs
# Robin Keunen <[email protected]>
# Houssine Bakkali <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# SPDX-FileCopyrightText: 2022 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Product Information Screen",
"summary": """
Emptied.""",
"version": "12.0.0.0.1",
"category": "Product",
"summary": "Adds a read-only screen to display product information",
"author": "Coop IT Easy SC",
"website": "https://github.com/beescoop/Obeesdoo",
"author": "Coop IT Easy SC",
"maintainers": ["carmenbianca"],
"license": "AGPL-3",
"depends": ["beesdoo_product"],
"data": [
"security/groups.xml",
"security/ir.model.access.csv",
"security/ir_rules.xml",
"views/product.xml",
"views/menus.xml",
],
"installable": True,
"application": False,
"depends": [
"product_info_screen",
],
"excludes": [],
"data": [],
"demo": [],
"qweb": [],
}
47 changes: 0 additions & 47 deletions beesdoo_product_info_screen/i18n/beesdoo_product_info_screen.pot

This file was deleted.

5 changes: 3 additions & 2 deletions beesdoo_product_info_screen/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Robin Keunen <[email protected]>
* Houssine Bakkali <[email protected]>
* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Carmen Bianca BAKKER
2 changes: 1 addition & 1 deletion beesdoo_product_info_screen/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Adds a read-only screen to display product information.
Emptied.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Product Information Screen
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-beescoop%2FObeesdoo-lightgray.png?logo=github
:target: https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product_info_screen
:target: https://github.com/beescoop/Obeesdoo/tree/12.0/product_info_screen
:alt: beescoop/Obeesdoo

|badge1| |badge2| |badge3|
Expand All @@ -42,7 +42,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/beescoop/Obeesdoo/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/beescoop/Obeesdoo/issues/new?body=module:%20beesdoo_product_info_screen%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/beescoop/Obeesdoo/issues/new?body=module:%20product_info_screen%0Aversion:%2012.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.

Expand All @@ -63,6 +63,6 @@ Contributors
Maintainers
~~~~~~~~~~~

This module is part of the `beescoop/Obeesdoo <https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product_info_screen>`_ project on GitHub.
This module is part of the `beescoop/Obeesdoo <https://github.com/beescoop/Obeesdoo/tree/12.0/product_info_screen>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions product_info_screen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .rename_beesdoo import rename_beesdoo
24 changes: 24 additions & 0 deletions product_info_screen/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2021 Coop IT Easy SCRL fs
# Robin Keunen <[email protected]>
# Houssine Bakkali <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Information Screen",
"version": "12.0.0.0.1",
"category": "Product",
"summary": "Adds a read-only screen to display product information",
"author": "Coop IT Easy SC",
"website": "https://github.com/beescoop/Obeesdoo",
"license": "AGPL-3",
"depends": ["beesdoo_product"],
"data": [
"security/groups.xml",
"security/ir.model.access.csv",
"security/ir_rules.xml",
"views/product.xml",
"views/menus.xml",
],
"installable": True,
"application": False,
"pre_init_hook": "rename_beesdoo",
}
47 changes: 47 additions & 0 deletions product_info_screen/i18n/beesdoo_product_info_screen.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_info_screen
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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: product_info_screen
#: model_terms:ir.ui.view,arch_db:product_info_screen.view_product_information_read_only_form_button
msgid "Back to product list"
msgstr ""

#. module: product_info_screen
#: model:res.groups,name:product_info_screen.group_product_info_user
msgid "Product Info User"
msgstr ""

#. module: product_info_screen
#: model:ir.actions.act_window,name:product_info_screen.action_product_information
msgid "Product Information"
msgstr ""

#. module: product_info_screen
#: model_terms:ir.ui.view,arch_db:product_info_screen.view_product_information_read_only_form
msgid "Product Name"
msgstr ""

#. module: product_info_screen
#: model:ir.ui.menu,name:product_info_screen.menu_product_info
msgid "Product info"
msgstr ""

#. module: product_info_screen
#: model:ir.ui.menu,name:product_info_screen.menu_main_product
#: model_terms:ir.ui.view,arch_db:product_info_screen.view_product_information_read_only_form
#: model_terms:ir.ui.view,arch_db:product_info_screen.view_product_information_read_only_tree
msgid "Products"
msgstr ""

2 changes: 2 additions & 0 deletions product_info_screen/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Robin Keunen <[email protected]>
* Houssine Bakkali <[email protected]>
1 change: 1 addition & 0 deletions product_info_screen/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds a read-only screen to display product information.
45 changes: 45 additions & 0 deletions product_info_screen/rename_beesdoo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 2022 Coop IT Easy SC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

"""This module was previously beesdoo_product_info_screen before it was moved to
the OCA. beesdoo_product_info_screen is presently an empty module that depends
on this module. When this module is installed, it should convert all data from
the beesdoo_product_info_screen module to be useable by this module.
"""

import logging

_logger = logging.getLogger(__name__)

OLD_MODULE_NAME = "beesdoo_product_info_screen"
NEW_MODULE_NAME = "product_info_screen"


def model_to_table(name):
return name.replace(".", "_")


def rename_beesdoo(cr):
cr.execute(
"SELECT id FROM ir_module_module "
"WHERE name=%s and state IN ('installed', 'to upgrade')",
(OLD_MODULE_NAME,),
)
if not cr.fetchone():
return

from openupgradelib import openupgrade

_logger.info(
"transferring ir_model_data from {} to {}".format(
OLD_MODULE_NAME, NEW_MODULE_NAME
)
)
openupgrade.logged_query(
cr,
"""
UPDATE ir_model_data SET module = %s
WHERE module = %s AND name NOT IN
(SELECT name FROM ir_model_data WHERE module = %s)""",
(NEW_MODULE_NAME, OLD_MODULE_NAME, NEW_MODULE_NAME),
)
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Product Information Screen</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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" href="https://github.com/beescoop/obeesdoo/tree/12.0/beesdoo_product_info_screen"><img alt="beescoop/obeesdoo" src="https://img.shields.io/badge/github-beescoop%2Fobeesdoo-lightgray.png?logo=github" /></a></p>
<p><a class="reference external" 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" 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" href="https://github.com/beescoop/obeesdoo/tree/12.0/product_info_screen"><img alt="beescoop/obeesdoo" src="https://img.shields.io/badge/github-beescoop%2Fobeesdoo-lightgray.png?logo=github" /></a></p>
<p>Adds a read-only screen to display product information.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/beescoop/obeesdoo/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/beescoop/obeesdoo/issues/new?body=module:%20beesdoo_product_info_screen%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/beescoop/obeesdoo/issues/new?body=module:%20product_info_screen%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -415,7 +415,7 @@ <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/beescoop/obeesdoo/tree/12.0/beesdoo_product_info_screen">beescoop/obeesdoo</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/beescoop/obeesdoo/tree/12.0/product_info_screen">beescoop/obeesdoo</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
id="menu_main_product"
sequence="40"
groups="group_product_info_user"
web_icon="beesdoo_product_info_screen,static/description/icon.png"
web_icon="product_info_screen,static/description/icon.png"
/>
<menuitem
name="Product info"
Expand Down
1 change: 1 addition & 0 deletions setup/product_info_screen/odoo/addons/product_info_screen
6 changes: 6 additions & 0 deletions setup/product_info_screen/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading