Browse Source
fix pep8 W503
Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
pull/1009/head
Alexandre Fayolle
10 years ago
committed by
Holger Brunn
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
3 changed files with
7 additions and
6 deletions
database_cleanup/__openerp__.py
database_cleanup/model/purge_columns.py
database_cleanup/model/purge_tables.py
@ -22,7 +22,7 @@
{
' name ' : ' Database cleanup ' ,
' version ' : ' 0.1 ' ,
' author ' : ' Therp BV ' ,
' author ' : " Therp BV,Odoo Community Association (OCA) " ,
' depends ' : [ ' base ' ] ,
' license ' : ' AGPL-3 ' ,
' category ' : ' Tools ' ,
@ -96,8 +96,9 @@ class CleanupPurgeWizardColumn(orm.TransientModel):
columns = list ( set ( [
column for model_pool in model_pools
for column in model_pool . _columns
if not ( isinstance ( model_pool . _columns [ column ] , fields . function )
and not model_pool . _columns [ column ] . store )
if not ( isinstance ( model_pool . _columns [ column ] ,
fields . function ) and
not model_pool . _columns [ column ] . store )
] ) )
columns + = orm . MAGIC_COLUMNS
columns + = self . blacklist . get ( model_pools [ 0 ] . _table , [ ] )
@ -110,9 +110,9 @@ class CleanupPurgeWizardTable(orm.TransientModel):
known_tables + = [
column . _sql_names ( model_pool ) [ 0 ]
for column in model_pool . _columns . values ( )
if column . _type == ' many2many '
# unstored function fields of type m2m don't have _rel
and hasattr ( column , ' _rel ' )
if ( column . _type == ' many2many ' and
hasattr ( column , ' _rel ' ) ) # unstored function fields of
# type m2m don't have _rel
]
# Cannot pass table names as a psycopg argument