Skip to content

Commit

Permalink
Merge PR #25 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by miquelalzanillas
  • Loading branch information
OCA-git-bot committed Jan 14, 2025
2 parents fc25a1b + cb578d0 commit b087020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bookstore_mgmt_google_books_api/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def action_import_from_isbn(self):
book.published_date, "%Y-%m-%d"
).year
except Exception:
published_year = book.published_date
published_year = int(book.published_date[:4])

data["year_edition"] = published_year

Expand Down
2 changes: 1 addition & 1 deletion bookstore_mgmt_google_books_api/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def action_import_from_isbn(self):
book.published_date, "%Y-%m-%d"
).year
except Exception:
published_year = book.published_date
published_year = int(book.published_date[:4])

data["year_edition"] = published_year

Expand Down

0 comments on commit b087020

Please sign in to comment.