Skip to content

Commit

Permalink
T#745 - Fix the module adding the street3
Browse files Browse the repository at this point in the history
  • Loading branch information
giangtnm committed Nov 30, 2017
1 parent 4ab1568 commit 15af0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partner_address_street3/model/partner.py
Expand Up @@ -23,5 +23,5 @@ def _display_address(self, without_company=False):
"""Remove empty lines which can happen when street3 field is empty."""
res = super(ResPartner, self)._display_address(
without_company=without_company)
res = re.sub(r'([\n]+)', r'\n', res)
res = re.sub(r'\n{2,}', r'\n', res)
return res

0 comments on commit 15af0fa

Please sign in to comment.