Skip to content

Commit

Permalink
[MIG] product_profile: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhao committed Jan 9, 2020
1 parent 2fda792 commit 7f63001
Show file tree
Hide file tree
Showing 8 changed files with 244 additions and 186 deletions.
1 change: 1 addition & 0 deletions product_profile/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Contributors
* David BEAL <david.beal@akretion.com>
* Sébastien BEAU <sebastien.beau@akretion.com>
* Abdessamad HILALI <abdessamad.hilali@akretion.com>
* Kevin Khao <kevin.khao@akretion.com>

Iconography
-----------
Expand Down
1 change: 0 additions & 1 deletion product_profile/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
# © 2015 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

Expand Down
35 changes: 15 additions & 20 deletions product_profile/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
# coding: utf-8
# © 2015 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
'name': 'Product Profile',
'version': '10.0.1.0.0',
'author': 'Akretion, Odoo Community Association (OCA)',
'summary': "Allow to configure a product in 1 click",
'category': 'product',
'depends': [
'sale',
"name": "Product Profile",
"version": "12.0.1.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"summary": "Allow to configure a product in 1 click",
"category": "product",
"depends": ["sale_management"],
"website": "http://www.akretion.com/",
"data": [
"security/group.xml",
"views/product_view.xml",
"views/config_view.xml",
"security/ir.model.access.csv",
],
'website': 'http://www.akretion.com/',
'data': [
'security/group.xml',
'views/product_view.xml',
'views/config_view.xml',
'security/ir.model.access.csv',
],
'demo': [
'demo/product.profile.csv',
],
'installable': True,
'license': 'AGPL-3',
"demo": ["demo/product.profile.csv"],
"installable": True,
"license": "AGPL-3",
}
1 change: 0 additions & 1 deletion product_profile/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
# © 2015 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

Expand Down
10 changes: 5 additions & 5 deletions product_profile/models/config.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# coding: utf-8
# © 2015 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models
from .product import PROFILE_MENU


class BaseConfigSettings(models.TransientModel):
_inherit = 'base.config.settings'
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

group_product_profile = fields.Boolean(
string="Display Product Profile fields",
implied_group='product_profile.group_product_profile',
implied_group="product_profile.group_product_profile",
help="Display fields computed by product profile "
"module.\nFor debugging purpose see menu\n%s" % PROFILE_MENU)
"module.\nFor debugging purpose see menu\n%s" % PROFILE_MENU,
)
Loading

0 comments on commit 7f63001

Please sign in to comment.