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 14, 2020
1 parent 2fda792 commit b08c1bc
Show file tree
Hide file tree
Showing 10 changed files with 280 additions and 211 deletions.
5 changes: 2 additions & 3 deletions product_profile/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ Configuration
In this case 'categ_id' field (from product.template) is populated
with 'profile_default_categ_id' value but can be updated manually
by the user.
Careful: each time you change profile, the default value is also populated
whatever the previous value. Custom value is only keep if don't
change the profile.
The default value is only used once on the product's create() call.

4. Insert data (xml or csv) and define values for each field defined above
for each configuration scenario
Expand Down Expand Up @@ -128,6 +126,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": "https://github.com/oca/product-attribute",
"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_user",
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 b08c1bc

Please sign in to comment.