Browse Source

partner_street_number: PEP8 corrections

pull/207/head
Darko Nikolovski 8 years ago
parent
commit
4910be333f
  1. 2
      partner_street_number/__init__.py
  2. 4
      partner_street_number/__openerp__.py

2
partner_street_number/__init__.py

@ -36,7 +36,7 @@ def post_init_hook(cr, registry):
cr.execute( cr.execute(
'SELECT id, street FROM res_partner ' 'SELECT id, street FROM res_partner '
'WHERE street IS NOT NULL and street_name IS NULL' 'WHERE street IS NOT NULL and street_name IS NULL'
)
)
partner_obj = registry['res.partner'] partner_obj = registry['res.partner']
for partner in cr.fetchall(): for partner in cr.fetchall():
partner_obj.write( partner_obj.write(

4
partner_street_number/__openerp__.py

@ -27,11 +27,11 @@
"category": 'Tools', "category": 'Tools',
"depends": [ "depends": [
'web', 'web',
],
],
"data": [ "data": [
'views/res_partner.xml', 'views/res_partner.xml',
'views/assets.xml', 'views/assets.xml',
],
],
'installable': True, 'installable': True,
'license': 'AGPL-3', 'license': 'AGPL-3',
'post_init_hook': 'post_init_hook', 'post_init_hook': 'post_init_hook',

Loading…
Cancel
Save