Commit ae2a04dc authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[autopep8] E127 - Fix visual indentation

parent cbfb340bbe6c
......@@ -79,7 +79,7 @@ class ExpenseLine(AnyEntity):
@property
def parent_expense(self):
expenses = [entity for entity in self.reverse_has_lines
if entity.e_schema == 'Expense']
if entity.e_schema == 'Expense']
if expenses:
return expenses[0]
return None
......
......@@ -119,17 +119,17 @@ class FreshPageTemplate(PageTemplate):
# company address
str_data = _(u"Est.") + _(u": ") \
+ self.company_data["company-address"]
+ self.company_data["company-address"]
self.draw_string_in_width(canvas,str_data,1.2*cm,25.6*cm,9.5*cm)
# company official ID number
str_data = _(u"Official ID num") + _(u": ") \
+ self.company_data["company-offnum"]
+ self.company_data["company-offnum"]
self.draw_string_in_width(canvas,str_data,11.2*cm,25.6*cm,5*cm)
# company activity number
str_data = _(u"Activity num") + _(u": ") \
+ self.company_data["company-actnum"]
+ self.company_data["company-actnum"]
self.draw_string_in_width(canvas,str_data,16.7*cm,25.6*cm,3.5*cm)
# title depending on document type
......
......@@ -12,8 +12,8 @@ class SecurityTC(HelpersTC):
def test_users_cannot_modify_accepted_expense(self):
with self.new_access('john').repo_cnx() as cnx:
rset = cnx.execute('Any E WHERE E is Expense, E has_lines EE, EE paid_by PA, '
'E in_state S, S name "accepted", PA associated_to U, U eid %(u)s',
{'u': self.user1}) # user1 is john
'E in_state S, S name "accepted", PA associated_to U, U eid %(u)s',
{'u': self.user1}) # user1 is john
self.assertEqual(len(rset), 1)
expense = rset.get_entity(0, 0)
self.add_expense_line(cnx, expense, self.account1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment