Skip to content

Commit

Permalink
[ADD] product_variant_template_reassign: New module
Browse files Browse the repository at this point in the history
TT51495
  • Loading branch information
chienandalu committed Nov 6, 2024
1 parent e58e66d commit 3ae34b0
Show file tree
Hide file tree
Showing 18 changed files with 1,201 additions and 0 deletions.
98 changes: 98 additions & 0 deletions product_variant_template_reassign/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
=================================
Product variant template reassign
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ddd8d22221dce3a8d71dc1c17660f015635e79cf6c4934c6f8fbec84fee1b183
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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--variant-lightgray.png?logo=github
:target: https://github.com/OCA/product-variant/tree/15.0/product_variant_template_reassign
:alt: OCA/product-variant
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-variant-15-0/product-variant-15-0-product_variant_template_reassign
: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-variant&target_branch=15.0
:alt: Try me on Runboat

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

Be able to assign a unique variant to a multi-variant template.

**Table of contents**

.. contents::
:local:

Usage
=====

To assign variants, go to a single variant product template.

1. In actions, choose: *Reassign variant*.
2. Choose the target product template.
3. Choose the variant attributes if available (otherwise you won't be
able to reassign the variant)
4. Click on *Reassign*.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-variant/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-variant/issues/new?body=module:%20product_variant_template_reassign%0Aversion:%2015.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

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

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

- David Vidal
- Pedro M. Baeza

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-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu

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

|maintainer-chienandalu|

This module is part of the `OCA/product-variant <https://github.com/OCA/product-variant/tree/15.0/product_variant_template_reassign>`_ 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_variant_template_reassign/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
20 changes: 20 additions & 0 deletions product_variant_template_reassign/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product variant template reassign",
"summary": "Reassign variants to templates",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Product",
"website": "https://github.com/OCA/product-variant",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["chienandalu"],
"license": "AGPL-3",
"depends": ["purchase_stock", "website_sale_stock"],
# "depends": ["product"],
"external_dependencies": {"python": ["openupgradelib"]},
"data": [
"security/ir.model.access.csv",
"wizards/reassign_variant_views.xml",
],
}
176 changes: 176 additions & 0 deletions product_variant_template_reassign/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_variant_template_reassign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-05 17:35+0000\n"
"PO-Revision-Date: 2024-11-05 18:38+0100\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.4\n"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid ""
"<i class=\"fa fa-exclamation-triangle\"/> No attributes available for "
"create a new variant in the target template"
msgstr ""
"<i class=\"fa fa-exclamation-triangle\"/> No hay atributos disponibles para "
"crear una nueva variante en la plantilla de destino"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid ""
"<i class=\"fa fa-exclamation-triangle\"/> Reassigning this template variant "
"to the selected target\n"
" <strong>can't be undone</strong>"
msgstr ""
"<i class=\"fa fa-exclamation-triangle\"/> Reasignar la variante de esta "
"plantilla al objetivo seleccionado <strong>no se puede deshacer</strong>"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__allowed_attribute_value_ids
msgid "Allowed Attribute Value"
msgstr "Valor de atributo permitido"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__allowed_target_product_template_ids
msgid "Allowed Target Product Template"
msgstr "Plantilla de producto destino permitida"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__attribute_value_ids
msgid "Attribute Value"
msgstr "Valor de atributo"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid "Cancel"
msgstr "Cancelar"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__create_date
msgid "Created on"
msgstr "Creado el"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__id
msgid "ID"
msgstr "ID (identificación)"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__write_uid
msgid "Last Updated by"
msgstr "Última actualización de"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__method
msgid "Method"
msgstr "Método"

#. module: product_variant_template_reassign
#: model:ir.model.fields.selection,name:product_variant_template_reassign.selection__reassign_variant__method__orm
msgid "ORM - Try to respect Odoo's data flows"
msgstr "ORM - Intentar respetar los flujos de datos de Odoo"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__origin_product_template_id
msgid "Origin Product Template"
msgstr "Plantilla de producto de origen"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid "Reassign"
msgstr "Reasignar"

#. module: product_variant_template_reassign
#: model:ir.actions.act_window,name:product_variant_template_reassign.reassign_variant_action
msgid "Reassign variant"
msgstr "Reasignar variante"

#. module: product_variant_template_reassign
#: model:ir.model,name:product_variant_template_reassign.model_reassign_variant
msgid "Reassign variant template"
msgstr "Reasignar plantilla de producto"

#. module: product_variant_template_reassign
#: model:ir.model.fields.selection,name:product_variant_template_reassign.selection__reassign_variant__method__sql
msgid "SQL - When the first on fails"
msgstr "SQL - Cuando anterior falla"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid "Select the target template"
msgstr "Seleccionar la plantilla de destino"

#. module: product_variant_template_reassign
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__target_product_template_id
msgid "Target Product Template"
msgstr "Plantilla de producto de destino"

#. module: product_variant_template_reassign
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
#, python-format
msgid ""
"The selected attributes didn't generate a variant in the target template"
msgstr ""
"Los atributos seleccionados no han generado una variante en la plantilla de "
"destino"

#. module: product_variant_template_reassign
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
#, python-format
msgid ""
"The selected attributes generate more than one variant. Refine your "
"configuration"
msgstr ""
"Los atributos seleccionados generan más de una variante. Refine su "
"configuración"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid ""
"This will merge the current template into the selected one and it can't be "
"undone"
msgstr ""
"Estos fusionará la plantilla de origen en la plantilla destino y esto no se "
"puede deshacer"

#. module: product_variant_template_reassign
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
msgid "Variant to move"
msgstr "Variante a mover"

#. module: product_variant_template_reassign
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
#, python-format
msgid "You can only reassign unique variant products"
msgstr "Solo se pueden reasignar plantillas con variante única"
Loading

0 comments on commit 3ae34b0

Please sign in to comment.