Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Flake 8
Browse files Browse the repository at this point in the history
  • Loading branch information
PCatinean committed Mar 30, 2017
1 parent 5c31f89 commit abadc4d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion product_configurator/__manifest__.py
Expand Up @@ -4,7 +4,7 @@
'version': '10.0.1.0.0',
'category': 'Generic Modules/Base',
'summary': 'Base for product configuration interface modules',
'author': 'Pledra', # pylint: disable=C8101
'author': 'Pledra',
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'depends': ['sale_stock'],
Expand Down
2 changes: 1 addition & 1 deletion product_configurator_mrp/__manifest__.py
Expand Up @@ -4,7 +4,7 @@
'version': '10.0.1.0.0',
'category': 'Manufacturing',
'summary': 'BOM Support for configurable products',
'author': 'Pledra', # pylint: disable=C8101
'author': 'Pledra',
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'depends': [
Expand Down
2 changes: 1 addition & 1 deletion product_configurator_wizard/__manifest__.py
Expand Up @@ -4,7 +4,7 @@
'version': '10.0.1.0.0',
'category': 'Generic Modules/Base',
'summary': 'Back-end Product Configurator',
'author': 'Pledra', # pylint: disable=C8101
'author': 'Pledra',
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'depends': ['sale', 'product_configurator'],
Expand Down
5 changes: 5 additions & 0 deletions product_configurator_wizard/wizard/product_configurator.py
Expand Up @@ -439,6 +439,11 @@ def add_dynamic_fields(self, res, dynamic_fields, wiz):
dependencies = config_lines.filtered(
lambda cl: cl.attribute_line_id == attr_line)

# If an attribute field depends on another field from the same
# configuration step then we must use attrs to enable/disable the
# required and readonly depending on the value entered in the
# dependee

if attr_line.value_ids <= dependencies.mapped('value_ids'):
attr_depends = {}
domain_lines = dependencies.mapped('domain_id.domain_line_ids')
Expand Down
2 changes: 1 addition & 1 deletion website_product_configurator/__manifest__.py
Expand Up @@ -3,7 +3,7 @@
'name': "Website Product Configurator",
'version': '10.0.1.0.0',
'summary': """Configure products in e-shop""",
'author': "Pledra", # pylint: disable=C8101
'author': "Pledra",
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'category': 'website',
Expand Down
2 changes: 1 addition & 1 deletion website_product_configurator_mrp/__manifest__.py
Expand Up @@ -4,7 +4,7 @@
'version': '10.0.1.0.0',
'category': 'Website',
'summary': 'Website integration of MRP',
'author': 'Pledra', # pylint: disable=C8101
'author': 'Pledra',
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'depends': [
Expand Down

0 comments on commit abadc4d

Please sign in to comment.