From 1221dac8650d4e10ba8bb7dbbe1842547791b98a Mon Sep 17 00:00:00 2001 From: Hossein Zahraei Date: Tue, 16 Sep 2025 15:12:10 +0330 Subject: [PATCH] fix/pre-commit-issues --- bookland/README.rst | 11 ++++++---- bookland/__manifest__.py | 20 +++++++++++-------- bookland/models/book.py | 6 +++--- bookland/static/description/index.html | 4 ++-- bookland/views/book_views.xml | 12 +++++------ bookland_account/README.rst | 11 ++++++---- bookland_account/__manifest__.py | 7 ++++++- .../static/description/index.html | 4 ++-- 8 files changed, 45 insertions(+), 30 deletions(-) diff --git a/bookland/README.rst b/bookland/README.rst index a3316bd..62d7ade 100644 --- a/bookland/README.rst +++ b/bookland/README.rst @@ -17,11 +17,14 @@ Book land a modern library management system .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/github-odoonix%2Feducation-lightgray.png?logo=github +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-odoonix%2Feducation-lightgray.png?logo=github :target: https://github.com/odoonix/education/tree/17.0/bookland :alt: odoonix/education -|badge1| |badge2| +|badge1| |badge2| |badge3| این یک اپلیکشن برای مدیریت کتابخانه‌های دانشگاه است. @@ -41,7 +44,7 @@ Changelog در این نسخه ساختار اولیه نرم افزار ایجاد شده و امکانات زیر ایجاد شده است. -- TODO: +- TODO: Bug Tracker =========== @@ -59,7 +62,7 @@ Credits Authors ------- -* +* Odoonix Maintainers ----------- diff --git a/bookland/__manifest__.py b/bookland/__manifest__.py index ab4028c..143c61e 100644 --- a/bookland/__manifest__.py +++ b/bookland/__manifest__.py @@ -1,10 +1,14 @@ # pylint: disable=W0104 -{"name": "Book land a modern library management system", - "data": [ - # Security - "security/ir.model.access.csv", - - # Views - "views/book_views.xml" - ]} +{ + "name": "Book land a modern library management system", + "website": "https://github.com/odoonix/education", + "author": "Odoonix", + "license": "LGPL-3", + "data": [ + # Security + "security/ir.model.access.csv", + # Views + "views/book_views.xml", + ], +} diff --git a/bookland/models/book.py b/bookland/models/book.py index c6cea62..a39b23d 100644 --- a/bookland/models/book.py +++ b/bookland/models/book.py @@ -1,4 +1,3 @@ -from operator import index from odoo import fields, models @@ -20,7 +19,7 @@ class BooklandBook(models.Model): # string="Description" required=False, translate=True, - index=False + index=False, ) publish_date = fields.Date(string="Publish") @@ -42,4 +41,5 @@ class BooklandBook(models.Model): help="""

Price of the Book

How much the book should sell on store

-""") +""", + ) diff --git a/bookland/static/description/index.html b/bookland/static/description/index.html index e62a365..aacd0df 100644 --- a/bookland/static/description/index.html +++ b/bookland/static/description/index.html @@ -374,7 +374,7 @@

Book land a modern library management system

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:6e9bd71f9df246f05e4bc098c4bf905387b718570abfb0c2ca222227f560fa69 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta odoonix/education

+

Beta License: LGPL-3 odoonix/education

این یک اپلیکشن برای مدیریت کتابخانه‌های دانشگاه است.

در این نرم افزار شما امکانات متفاوتی خواهی داشت.

Table of contents

@@ -414,7 +414,7 @@

Credits

Authors

diff --git a/bookland/views/book_views.xml b/bookland/views/book_views.xml index 2b31d40..c876db7 100644 --- a/bookland/views/book_views.xml +++ b/bookland/views/book_views.xml @@ -1,4 +1,4 @@ - + @@ -8,15 +8,15 @@
- + - + - +
@@ -29,8 +29,8 @@ bookland.book - - + +
diff --git a/bookland_account/README.rst b/bookland_account/README.rst index e62a3cd..d76fd5f 100644 --- a/bookland_account/README.rst +++ b/bookland_account/README.rst @@ -17,11 +17,14 @@ Book land accounting feature .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/github-odoonix%2Feducation-lightgray.png?logo=github +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-odoonix%2Feducation-lightgray.png?logo=github :target: https://github.com/odoonix/education/tree/17.0/bookland_account :alt: odoonix/education -|badge1| |badge2| +|badge1| |badge2| |badge3| این ماژول امکانات حسابداری را اضافه می‌کند @@ -36,7 +39,7 @@ Known issues / Roadmap V2.0.0 ====== -- connect to invoice +- connect to invoice Changelog ========= @@ -59,7 +62,7 @@ Credits Authors ------- -* +* Odoonix Maintainers ----------- diff --git a/bookland_account/__manifest__.py b/bookland_account/__manifest__.py index d118692..f2fa465 100644 --- a/bookland_account/__manifest__.py +++ b/bookland_account/__manifest__.py @@ -1,2 +1,7 @@ # pylint: disable=W0104 -{"name": "Book land accounting feature"} +{ + "name": "Book land accounting feature", + "website": "https://github.com/odoonix/education", + "author": "Odoonix", + "license": "LGPL-3", +} diff --git a/bookland_account/static/description/index.html b/bookland_account/static/description/index.html index 1545af2..4ee816a 100644 --- a/bookland_account/static/description/index.html +++ b/bookland_account/static/description/index.html @@ -374,7 +374,7 @@

Book land accounting feature

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:aea4cf208e370fcf4ea7f54b5f62c2319c1c78e6263fdafba294eed37a30cd2e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta odoonix/education

+

Beta License: LGPL-3 odoonix/education

این ماژول امکانات حسابداری را اضافه می‌کند

Table of contents

@@ -415,7 +415,7 @@

Credits

Authors

    -
  • +
  • Odoonix