Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bookstore_mgmt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ promote its widespread use.
.. |maintainer-peluko00| image:: https://github.com/peluko00.png?size=40px
:target: https://github.com/peluko00
:alt: peluko00
.. |maintainer-miquelalzanillas| image:: https://github.com/miquelalzanillas.png?size=40px
:target: https://github.com/miquelalzanillas
:alt: miquelalzanillas

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-peluko00|
|maintainer-peluko00| |maintainer-miquelalzanillas|

This module is part of the `OCA/vertical-edition <https://github.com/OCA/vertical-edition/tree/17.0/bookstore_mgmt>`_ project on GitHub.

Expand Down
2 changes: 1 addition & 1 deletion bookstore_mgmt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"website": "https://github.com/OCA/vertical-edition",
"category": "Product",
"license": "AGPL-3",
"maintainers": ["peluko00"],
"maintainers": ["peluko00", "miquelalzanillas"],
"version": "17.0.1.0.0",
"depends": ["product"],
"data": [
Expand Down
24 changes: 12 additions & 12 deletions bookstore_mgmt/i18n/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-30 07:37+0000\n"
"PO-Revision-Date: 2023-12-30 08:40+0100\n"
"POT-Creation-Date: 2024-11-13 13:53+0000\n"
"PO-Revision-Date: 2024-11-13 13:53+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ca_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.4.3\n"

#. module: bookstore_mgmt
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__author_id
Expand Down Expand Up @@ -88,14 +86,14 @@ msgstr "Any d'edició"
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_form_inherited
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_search_books_inherited
msgid "Editorial"
msgstr "Editorial"
msgstr ""

#. module: bookstore_mgmt
#: model:ir.actions.act_window,name:bookstore_mgmt.action_product_book_editorials
#: model:ir.model,name:bookstore_mgmt.model_product_book_editorial
#: model:ir.ui.menu,name:bookstore_mgmt.menu_product_books_editorials
msgid "Editorials"
msgstr "Editorials"
msgstr ""

#. module: bookstore_mgmt
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__genre_id
Expand All @@ -118,7 +116,7 @@ msgstr "Gèneres"
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_book_editorial__id
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_book_genre__id
msgid "ID"
msgstr "ID"
msgstr ""

#. module: bookstore_mgmt
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__is_book
Expand Down Expand Up @@ -157,6 +155,11 @@ msgstr "Nom"
msgid "Product"
msgstr "Producte"

#. module: bookstore_mgmt
#: model:ir.model,name:bookstore_mgmt.model_product_product
msgid "Product Variant"
msgstr "Variant de producte"

#. module: bookstore_mgmt
#: model:res.groups,name:bookstore_mgmt.bookstore_user
msgid "User"
Expand All @@ -168,6 +171,3 @@ msgstr "Usuari"
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_search_books_inherited
msgid "Year of Edition"
msgstr "Any d'edició"

#~ msgid "Last Modified on"
#~ msgstr "Darrera modificació el"
27 changes: 11 additions & 16 deletions bookstore_mgmt/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-30 07:37+0000\n"
"PO-Revision-Date: 2023-12-30 08:41+0100\n"
"POT-Creation-Date: 2024-11-13 13:54+0000\n"
"PO-Revision-Date: 2024-11-13 13:54+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.4.3\n"

#. module: bookstore_mgmt
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__author_id
Expand Down Expand Up @@ -47,7 +45,6 @@ msgstr "Libros"

#. module: bookstore_mgmt
#: model:ir.ui.menu,name:bookstore_mgmt.menu_library_root
#, fuzzy
msgid "Bookstore"
msgstr "Librería"

Expand Down Expand Up @@ -79,7 +76,6 @@ msgstr "Nombre mostrado"

#. module: bookstore_mgmt
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_form_inherited
#, fuzzy
msgid "Edition Year"
msgstr "Año de edición"

Expand All @@ -90,13 +86,12 @@ msgstr "Año de edición"
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_form_inherited
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_search_books_inherited
msgid "Editorial"
msgstr "Editorial"
msgstr ""

#. module: bookstore_mgmt
#: model:ir.actions.act_window,name:bookstore_mgmt.action_product_book_editorials
#: model:ir.model,name:bookstore_mgmt.model_product_book_editorial
#: model:ir.ui.menu,name:bookstore_mgmt.menu_product_books_editorials
#, fuzzy
msgid "Editorials"
msgstr "Editoriales"

Expand All @@ -121,12 +116,11 @@ msgstr "Géneros"
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_book_editorial__id
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_book_genre__id
msgid "ID"
msgstr "ID"
msgstr ""

#. module: bookstore_mgmt
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__is_book
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_template__is_book
#, fuzzy
msgid "Is a book"
msgstr "Es un libro"

Expand Down Expand Up @@ -161,6 +155,11 @@ msgstr "Nombre"
msgid "Product"
msgstr "Producto"

#. module: bookstore_mgmt
#: model:ir.model,name:bookstore_mgmt.model_product_product
msgid "Product Variant"
msgstr "Variante de producto"

#. module: bookstore_mgmt
#: model:res.groups,name:bookstore_mgmt.bookstore_user
msgid "User"
Expand All @@ -170,9 +169,5 @@ msgstr "Usuario"
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_product__year_edition
#: model:ir.model.fields,field_description:bookstore_mgmt.field_product_template__year_edition
#: model_terms:ir.ui.view,arch_db:bookstore_mgmt.view_product_template_search_books_inherited
#, fuzzy
msgid "Year of Edition"
msgstr "Año de edición"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación el"
3 changes: 2 additions & 1 deletion bookstore_mgmt/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import product
from . import product_template
from . import product_product
14 changes: 14 additions & 0 deletions bookstore_mgmt/models/product_product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 (APSL-Nagarro) - Miquel Alzanillas, Antoni Marroig
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ProductProduct(models.Model):
_inherit = "product.product"

is_book = fields.Boolean(string="Is a book")
author_id = fields.Many2one("product.book.author", string="Author")
editorial_id = fields.Many2one("product.book.editorial", string="Editorial")
genre_id = fields.Many2one("product.book.genre", string="Genre")
year_edition = fields.Integer(string="Year of Edition")