-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] lighting_review: Migration to 16.0
- Loading branch information
Showing
21 changed files
with
606 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>) | ||
# Eric Antones <eantones@nuobit.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>) | ||
# Eric Antones <eantones@nuobit.com> | ||
# Copyright NuoBiT Solutions - Eric Antones <eantones@nuobit.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
||
{ | ||
"name": "Lighting Review", | ||
"description": "Tools for reviewing data", | ||
"version": "11.0.1.1.1", | ||
"author": "NuoBiT Solutions, S.L., Eric Antones", | ||
"version": "16.0.1.0.0", | ||
"author": "NuoBiT Solutions SL", | ||
"license": "AGPL-3", | ||
"category": "Custom", | ||
"category": "Lighting", | ||
"website": "https://github.com/NuoBiT/lighting-vertical", | ||
"depends": ["mail", "lighting"], | ||
"data": [ | ||
"security/review_security.xml", | ||
"security/ir.model.access.csv", | ||
"views/review_menuitems.xml", | ||
"views/review_package_views.xml", | ||
"views/product_views.xml", | ||
"views/product_source_line_views.xml", | ||
"views/product_review_views.xml", | ||
"views/review_menuitems.xml", | ||
], | ||
"installable": True, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>) | ||
# Eric Antones <eantones@nuobit.com> | ||
# Copyright NuoBiT Solutions - Eric Antones <eantones@nuobit.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
||
from odoo import fields, models | ||
|
||
from . import mixin | ||
|
||
|
||
class LightingProductSourceLine(models.Model, mixin.LightingReviewMixin): | ||
_inherit = "lighting.product.source.line" | ||
class LightingProductSourceLine(models.Model): | ||
_name = "lighting.product.source.line" | ||
_inherit = ["lighting.product.source.line", "lighting.review.mixin"] | ||
|
||
# to review fields | ||
toreview_cri_min = fields.Boolean( | ||
string=mixin.get_string("CRI"), | ||
help=mixin.TOREVIEW_HELP, | ||
track_visibility="onchange", | ||
tracking=True, | ||
) | ||
|
||
toreview_color_consistency = fields.Boolean( | ||
string=mixin.get_string("Color consistency (SDCM)"), | ||
help=mixin.TOREVIEW_HELP, | ||
track_visibility="onchange", | ||
tracking=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.