Skip to content

Commit

Permalink
Correct lyric create_or_update
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Jul 7, 2016
1 parent 5ca6892 commit 88da62d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
---------------

0.1.3 (2016-07-07)
++++++++++++++++++

**Fixes**

- Correct lyric to create or update a record

0.1.2 (2016-07-07)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion anthem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright 2016 Camptocamp SA
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html)

__version__ = "0.1.2"
__version__ = "0.1.3"
2 changes: 1 addition & 1 deletion anthem/lyrics/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def create_or_update(ctx, model, xmlid, values):
if record:
record.update(values)
else:
record = model.create(values)
record = ctx.env[model].create(values)
add_xmlid(ctx, record, xmlid)
return record

0 comments on commit 88da62d

Please sign in to comment.