Skip to content
Permalink
Browse files

💚 web_login_background: lint

  • Loading branch information...
em230418 committed Jul 29, 2019
1 parent b61c2e8 commit 33d7f896964b49740fbb30a2a08a22b511b866af
Showing with 4 additions and 4 deletions.
  1. +1 −1 web_login_background/README.rst
  2. +1 −1 web_login_background/__manifest__.py
  3. +2 −2 web_login_background/models.py
@@ -3,4 +3,4 @@ Web Login Background

Set your background picture on odoo login and signup screens.

Tested on Odoo 9.0 4dbc81f910d872ddb48d855396fcc7d91ddc9410
Tested on Odoo 10.0 66136110392b86c5b52fca7243b60f4f9fb9f789
@@ -4,7 +4,7 @@
"summary": """Get a random background at the login page""",
"category": "Extra Tools",
"images": ['images/login.png'],
"version": "1.0.1",
"version": "10.0.1.0.1",

"author": "IT-Projects LLC, Ildar Nasyrov",
"support": "apps@it-projects.info",
@@ -25,9 +25,9 @@ def check(self, mode, values=None):
ids = [ids]
ids = ids[:] # make a copy
cr.execute('SELECT id,use_as_background FROM ir_attachment WHERE id = ANY (%s)', (ids,))
for id, use_as_background in cr.fetchall():
for attachment_id, use_as_background in cr.fetchall():
if use_as_background:
ids.remove(id)
ids.remove(attachment_id)
if not ids:
return
return super(IRAttachmentBackground, self).check(mode, values=values)

0 comments on commit 33d7f89

Please sign in to comment.
You can’t perform that action at this time.