Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5160749
[ADD] product_category_type : new module that Add 'Type' field on Pro…
legalsylvain Feb 13, 2021
f637814
[UPD] Update product_category_type.pot
oca-travis Nov 5, 2021
4678500
[UPD] README.rst
OCA-git-bot Nov 5, 2021
60dc38b
[MIG] product_category_type: Migration to 14.0
Kev-Roche Jan 13, 2022
12329d9
[UPD] Update product_category_type.pot
oca-travis Jan 13, 2022
45923ef
[UPD] README.rst
OCA-git-bot Jan 13, 2022
26fe4f1
product_category_type 14.0.1.0.1
OCA-git-bot Jan 13, 2022
30a3e52
Added translation using Weblate (German)
marylla May 11, 2022
7c63f38
[MIG][15.0]product_category_type:Migration to 15.0
bizzappdev Jan 17, 2023
17e9ad9
[MIG][16.0]product_category_type:Migration to 16.0
Feb 24, 2023
f78e901
[ADD] product_category_type fr translation
legalsylvain Feb 24, 2023
a478409
[UPD] Update product_category_type.pot
Jun 25, 2023
6d9b768
[UPD] README.rst
OCA-git-bot Jun 25, 2023
a1132ed
Added translation using Weblate (Spanish)
Ivorra78 Aug 23, 2023
44bc3b3
Translated using Weblate (Spanish)
Ivorra78 Aug 23, 2023
ea27235
[UPD] README.rst
OCA-git-bot Sep 3, 2023
133d12e
Update translation files
weblate Oct 9, 2023
bee8748
Added translation using Weblate (Italian)
mymage Oct 29, 2023
4be9768
Translated using Weblate (Italian)
mymage Oct 29, 2023
eea6670
Translated using Weblate (Italian)
mymage Dec 19, 2023
c9ac589
Translated using Weblate (Italian)
mymage Feb 16, 2024
67fa405
[IMP] product_category_type: pre-commit auto fixes
bizzappdev Jun 11, 2024
c1a5514
[MIG] product_category_type: Migration to 17.0
bizzappdev Jun 11, 2024
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
104 changes: 104 additions & 0 deletions product_category_type/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
=====================
Product Category Type
=====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c00a45ebcba2d1b0c250b5924ff6d7936bf326e6ad624c152c3a129f7cc72f50
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/17.0/product_category_type
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_category_type
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Add 'Type' field on Product Categories to distinguish between parent and
final categories.

figure:: ../static/description/product_category_tree.png

- Categories (type view) can contain only categories.
- Categories (type normal) can contain only products.

It is so impossible to select a category (type view) in the product
template form view.

figure:: ../static/description/product_template_form.png

Note
----

This module restores a feature that was present in Odoo Community
Edition until the V10 revision.

Ref:
https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L24

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_category_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* GRAP

Contributors
------------

- Sylvain LE GAL (https://www.twitter.com/legalsylvain)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

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

|maintainer-legalsylvain|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_category_type>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_category_type/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions product_category_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2021 Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Category Type",
"summary": """
Add Type field on Product Categories
to distinguish between parent and final categories""",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "GRAP,Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/product-attribute",
"depends": [
"product",
],
"data": [
"views/product_category.xml",
],
"demo": [
"demo/product_category.xml",
],
}
23 changes: 23 additions & 0 deletions product_category_type/demo/product_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<record model="product.category" id="category_view">
<field name="name">Demo Parent Category (Type View)</field>
<field name="type">view</field>
</record>

<record model="product.category" id="category_normal_1">
<field name="name">Demo Category 1 (Type Normal)</field>
<field name="type">normal</field>
<field name="parent_id" ref="category_view" />
</record>

<record model="product.category" id="category_normal_2">
<field name="name">Demo Category 2 (Type Normal)</field>
<field name="type">normal</field>
<field name="parent_id" ref="category_view" />
</record>

</odoo>
74 changes: 74 additions & 0 deletions product_category_type/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_type
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-05-11 13:05+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: product_category_type
#: model:ir.model.fields,help:product_category_type.field_product_category__type
msgid ""
"A category of the view type is a virtual category that can be used as the "
"parent of another category to create a hierarchical structure."
msgstr ""
"Eine Kategorie mit Typ \"Ansicht\" ist eine virtuelle Kategorie, die als "
"übergeordnete Kategorie verwendet werden kann, um eine Hierarchie zu "
"erstellen."

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__type
msgid "Category Type"
msgstr "Kategorie-Typ"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__normal
msgid "Normal"
msgstr "Normal"

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__parent_id
msgid "Parent Category"
msgstr "Übergeordnete Kategorie"

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_template
msgid "Product"
msgstr ""

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_category
#: model:ir.model.fields,field_description:product_category_type.field_product_product__categ_id
#: model:ir.model.fields,field_description:product_category_type.field_product_template__categ_id
msgid "Product Category"
msgstr "Produktkategorie"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__view
msgid "View"
msgstr "Ansicht"

#~ msgid "Display Name"
#~ msgstr "Anzeigename"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zuletzt geändert am"

#~ msgid "Product Template"
#~ msgstr "Produktvorlage"

#~ msgid "Select category for the current product"
#~ msgstr "Kategorie für das aktuelle Produkt auswählen"
58 changes: 58 additions & 0 deletions product_category_type/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_type
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-29 08:31+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_category_type
#: model:ir.model.fields,help:product_category_type.field_product_category__type
msgid ""
"A category of the view type is a virtual category that can be used as the "
"parent of another category to create a hierarchical structure."
msgstr ""
"Una categoría del tipo vista es una categoría virtual que puede utilizarse "
"como padre de otra categoría para crear una estructura jerárquica."

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__type
msgid "Category Type"
msgstr "Tipo de Categoría"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__normal
msgid "Normal"
msgstr "Normal"

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__parent_id
msgid "Parent Category"
msgstr "Categoría Parental"

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_template
msgid "Product"
msgstr "Producto"

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_category
#: model:ir.model.fields,field_description:product_category_type.field_product_product__categ_id
#: model:ir.model.fields,field_description:product_category_type.field_product_template__categ_id
msgid "Product Category"
msgstr "Categoría de Producto"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__view
msgid "View"
msgstr "Ver"
58 changes: 58 additions & 0 deletions product_category_type/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_type
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-24 16:47+0000\n"
"PO-Revision-Date: 2023-02-24 16:47+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_category_type
#: model:ir.model.fields,help:product_category_type.field_product_category__type
msgid ""
"A category of the view type is a virtual category that can be used as the "
"parent of another category to create a hierarchical structure."
msgstr ""
"Une catégorie de type vue est une catégorie virtuelle qui est utilisée "
"comme parent d'une autre catégorie, pour créer une structure hiérarchique."

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__type
msgid "Category Type"
msgstr "Type de catégorie"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__normal
msgid "Normal"
msgstr ""

#. module: product_category_type
#: model:ir.model.fields,field_description:product_category_type.field_product_category__parent_id
msgid "Parent Category"
msgstr "Catégorie mère"

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_template
msgid "Product"
msgstr "Produit"

#. module: product_category_type
#: model:ir.model,name:product_category_type.model_product_category
#: model:ir.model.fields,field_description:product_category_type.field_product_product__categ_id
#: model:ir.model.fields,field_description:product_category_type.field_product_template__categ_id
msgid "Product Category"
msgstr "Catégorie de produit"

#. module: product_category_type
#: model:ir.model.fields.selection,name:product_category_type.selection__product_category__type__view
msgid "View"
msgstr "Vue"
Loading