Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_category_active: Migration to 18.0 #1851

Merged
merged 20 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d00a29a
[ADD] product_category_archive: new module
May 4, 2020
a9469a0
[FIX] product_category_archive: Constraint search refinement
pedrobaeza May 15, 2020
a5c5080
[IMP] product_category_archive: add a test
May 15, 2020
d8e81df
Added translation using Weblate (Portuguese)
pedrocs-exo Oct 18, 2020
37b6e0b
Added translation using Weblate (Catalan)
claudiagn Jan 26, 2021
409f085
[IMP] product_category_active: black, isort, prettier
CarlosRoca13 Feb 19, 2021
a2efb99
[MIG] product_category_active: Migration to v13.0
CarlosRoca13 Feb 19, 2021
9eee40e
[14.0][MIG] product_category_active
rousseldenis Dec 22, 2021
d77891d
[MIG] product_category_active: Migration to 15.0
tgrellety Mar 9, 2022
b10d63b
[MIG] product_category_active: Migration to 16.0
Jan 17, 2023
73d505e
Added translation using Weblate (Italian)
PicchiSeba Apr 27, 2023
02e8ebf
[IMP] product_category_active: test performance improvement
josep-tecnativa Oct 23, 2023
176cdcc
Translated using Weblate (Italian)
mymage Nov 1, 2023
ede5972
Added translation using Weblate (Croatian)
uvid-alen Aug 16, 2024
e09a57a
[IMP] product_category_active: pre-commit auto fixes
victoralmau Dec 18, 2024
f0bfcab
[MIG] product_category_active: Migration to 17.0
victoralmau Dec 18, 2024
0aac53e
[UPD] Update product_category_active.pot
Dec 20, 2024
b22dcf9
[BOT] post-merge updates
OCA-git-bot Dec 20, 2024
4a322c5
[FIX] product_category_active: harmonization of category display.
legalsylvain Jan 6, 2025
07df58f
[MIG] product_category_active: Migration to 18.0
HeliconiaSolutions Dec 27, 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
100 changes: 100 additions & 0 deletions product_category_active/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
=======================
Product Category Active
=======================

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

.. |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/18.0/product_category_active
: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-18-0/product-attribute-18-0-product_category_active
: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=18.0
:alt: Try me on Runboat

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

This module allows you to archive product categories.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to *Inventory > Configuration > Products > Product categories*.
2. Select a product category or create a new one.
3. Click on the smart button Archive (this action will set active field
to False).

Note: If there are products in the category to be archived or any of its
children categories, an error will be raised and it won't be archived.

Note 2: Children category are not archived/unarchived when the parent
category does.

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_active%0Aversion:%2018.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
-------

* Tecnativa
* GRAP

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda
- Pedro M. Baeza
- Carlos Roca

- Denis Roussel <[email protected]>
- Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_category_active/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
14 changes: 14 additions & 0 deletions product_category_active/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Product Category Active",
"version": "18.0.1.0.0",
"category": "Product",
"summary": "Add option to archive product categories",
"author": "Tecnativa, GRAP, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"license": "AGPL-3",
"depends": ["product"],
"data": ["views/product_views.xml"],
}
48 changes: 48 additions & 0 deletions product_category_active/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2021-02-22 08:57+0100\n"
"Last-Translator: Carlos <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Poedit 2.0.6\n"

#. module: product_category_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr "Actiu"

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""
"Almenys una categoria que intenteu arxivar o un dels seus fills hi té un o "
"més productes vinculats."

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""
"Si no està marcat, us permetrà amagar la categoria de producte sense "
"eliminar-la."

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr "Categoria de producte"
48 changes: 48 additions & 0 deletions product_category_active/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_archive
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2021-02-22 08:57+0100\n"
"Last-Translator: Carlos <[email protected]>\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n"

#. module: product_category_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr "Activo"

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""
"Al menos una de las categorías que se están intentando archivar o al menos "
"una de sus hijas tiene uno o más productos asociados."

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""
"Si no está marcado, permitirá ocultar la categoría de producto sin "
"eliminarla."

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr "Categoría de producto"
42 changes: 42 additions & 0 deletions product_category_active/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: product_category_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr ""

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr ""
47 changes: 47 additions & 0 deletions product_category_active/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-01 12:38+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr "Attivo"

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""
"Almeno una categoria che si sta cercando di archiviare oppure una dei suoi "
"discendenti ha uno o più prodotti associati ad essa."

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""
"Se non selezionato, consente di nascondere la categoria dei prodotti senza "
"rimuoverla."

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr "Categoria prodotto"
40 changes: 40 additions & 0 deletions product_category_active/i18n/product_category_active.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_category_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr ""

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr ""
44 changes: 44 additions & 0 deletions product_category_active/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_category_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2021-02-22 08:57+0100\n"
"Last-Translator: Carlos <[email protected]>\n"
"Language-Team: none\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Poedit 2.0.6\n"

#. module: product_category_active
#: model:ir.model.fields,field_description:product_category_active.field_product_category__active
msgid "Active"
msgstr "Ativo"

#. module: product_category_active
#. odoo-python
#: code:addons/product_category_active/models/product_category.py:0
#, python-format
msgid ""
"At least one category that you are trying to archive or one of its children "
"has one or more product linked to it."
msgstr ""

#. module: product_category_active
#: model:ir.model.fields,help:product_category_active.field_product_category__active
msgid ""
"If unchecked, it will allow you to hide the product category without "
"removing it."
msgstr ""

#. module: product_category_active
#: model:ir.model,name:product_category_active.model_product_category
msgid "Product Category"
msgstr "Categoria de Produto"
Loading
Loading