Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-demeyer committed Feb 21, 2019
1 parent 724cd4c commit 48123dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions account_account_tag_code/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2009-2018 Noviat.
# Copyright 2009-2019 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'account tag code',
'version': '11.0.1.0.0',
'version': '11.0.1.0.1',
'category': 'Accounting & Finance',
'summary': """
Add 'code' field to account tags
Expand Down
4 changes: 3 additions & 1 deletion account_account_tag_code/models/account_account_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ def name_get(self):
for tag in self:
if tag.code:
name = ' - '.join([tag.code, tag.name])
result.append((tag.id, name))
else:
name = tag.name
result.append((tag.id, name))
return result

0 comments on commit 48123dc

Please sign in to comment.