1. zikzakmedia
  2. trytond-product_variant

Commits

Raimon Esteve (Zikzakmedia)  committed 6f59585

source guide line + pyflakes

  • Participants
  • Parent commits 60eef97
  • Branches 2.9

Comments (0)

Files changed (4)

File configuration.py

View file
  • Ignore whitespace
 #This file is part product_variant module for Tryton.
 #The COPYRIGHT file at the top level of this repository contains
 #the full copyright notices and license terms.
-
 from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
 
-
 __all__ = ['Configuration']
 
 
 class Configuration(ModelSingleton, ModelSQL, ModelView):
     'Variant Configuration'
     __name__ = 'product.variant.configuration'
-
     code_separator = fields.Char('Code Separator')
-

File configuration.xml

View file
  • Ignore whitespace
 The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
 <tryton>
     <data>
-    
+
         <menuitem name="Variant Configuration" 
             parent="product.menu_main_product"
             sequence="10" 
             id="menu_product_configuration" 
             />
-            
+
         <record model="ir.ui.menu-res.group"
             id="menu_product_configuration_group">
             <field name="menu" ref="menu_product_configuration"/>
             <field name="view" ref="act_product_variant_configuration_form"/>
             <field name="act_window" ref="act_product_variant_configuration_form"/>
         </record>
-        
+
         <menuitem parent="menu_product_configuration" 
             id="menu_variant_configuration"
             action="act_product_variant_configuration_form"
             <field name="menu" ref="menu_variant_configuration"/>
             <field name="group" ref="product.group_product_admin"/>
         </record>
-
     </data>
 </tryton>

File product.py

View file
  • Ignore whitespace
 #This file is part product_variant module for Tryton.
 #The COPYRIGHT file at the top level of this repository contains
 #the full copyright notices and license terms.
-
-import itertools
 from trytond.pool import Pool, PoolMeta
 from trytond.model import ModelView, ModelSQL, fields
-from trytond.pyson import Eval, Greater, Not, Bool
+from trytond.pyson import Eval, Not, Bool
 from trytond.transaction import Transaction
-
+import itertools
 
 __all__ = ['Product', 'Template', 'ProductAttribute', 'AttributeValue',
     'ProductTemplateAttribute', 'ProductAttributeValue']

File product.xml

View file
  • Ignore whitespace
             <field name="res_model">product.product</field>
             <field name="domain">[('template', '=', Eval('active_id'))]</field>
         </record>
-        
+
         <record model="ir.action.keyword" id="act_open_products">
             <field name="keyword">form_relate</field>
             <field name="model">product.template,-1</field>
                 ]]>
             </field>
         </record>
-        
+
         <record model="ir.ui.view" id="product_attribute_value_view_tree">
             <field name="model">product.attribute.value</field>
             <field name="type">tree</field>