Skip to content

Commit d97f862

Browse files
committed
[ADD] product_variant_template_reassign: New module
TT51495
1 parent e36237e commit d97f862

20 files changed

Lines changed: 1386 additions & 0 deletions

File tree

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
=================================
2+
Product variant template reassign
3+
=================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:ddd8d22221dce3a8d71dc1c17660f015635e79cf6c4934c6f8fbec84fee1b183
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github
20+
:target: https://github.com/OCA/product-variant/tree/15.0/product_variant_template_reassign
21+
:alt: OCA/product-variant
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/product-variant-15-0/product-variant-15-0-product_variant_template_reassign
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-variant&target_branch=15.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Be able to assign a unique variant to a multi-variant template.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Configuration
39+
=============
40+
41+
The merging options are quite limited when it comes to keep the original
42+
record values. To ensure, that the orignal variant info is preserved,
43+
you can go to the ``product_variant_template_reassign.keep_fields``
44+
config parameter and add the field to the list.
45+
46+
Usage
47+
=====
48+
49+
To assign variants, go to a single variant product template.
50+
51+
1. In actions, choose: *Reassign variant*.
52+
2. Choose the target product template.
53+
3. Choose the variant attributes if available (otherwise you won't be
54+
able to reassign the variant)
55+
4. Click on *Reassign*.
56+
57+
Bug Tracker
58+
===========
59+
60+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-variant/issues>`_.
61+
In case of trouble, please check there if your issue has already been reported.
62+
If you spotted it first, help us to smash it by providing a detailed and welcomed
63+
`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**>`_.
64+
65+
Do not contact contributors directly about support or help with technical issues.
66+
67+
Credits
68+
=======
69+
70+
Authors
71+
-------
72+
73+
* Tecnativa
74+
75+
Contributors
76+
------------
77+
78+
- `Tecnativa <https://tecnativa.com>`__
79+
80+
- David Vidal
81+
- Pedro M. Baeza
82+
83+
Maintainers
84+
-----------
85+
86+
This module is maintained by the OCA.
87+
88+
.. image:: https://odoo-community.org/logo.png
89+
:alt: Odoo Community Association
90+
:target: https://odoo-community.org
91+
92+
OCA, or the Odoo Community Association, is a nonprofit organization whose
93+
mission is to support the collaborative development of Odoo features and
94+
promote its widespread use.
95+
96+
.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
97+
:target: https://github.com/chienandalu
98+
:alt: chienandalu
99+
100+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
101+
102+
|maintainer-chienandalu|
103+
104+
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.
105+
106+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import wizards
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 Tecnativa - David Vidal
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Product variant template reassign",
5+
"summary": "Reassign variants to templates",
6+
"version": "15.0.1.0.0",
7+
"development_status": "Beta",
8+
"category": "Product",
9+
"website": "https://github.com/OCA/product-variant",
10+
"author": "Tecnativa, Odoo Community Association (OCA)",
11+
"maintainers": ["chienandalu"],
12+
"license": "AGPL-3",
13+
"depends": ["product", "sale_stock"],
14+
"external_dependencies": {"python": ["openupgradelib"]},
15+
"data": [
16+
"data/data.xml",
17+
"security/ir.model.access.csv",
18+
"wizards/reassign_variant_views.xml",
19+
],
20+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo noupdate="1">
3+
<record
4+
id="template_reassign_keep_fields"
5+
forcecreate="True"
6+
model="ir.config_parameter"
7+
>
8+
<field name="key">product_variant_template_reassign.keep_fields</field>
9+
<field name="value">list_price,barcode,standard_price</field>
10+
</record>
11+
</odoo>
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * product_variant_template_reassign
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-11-05 17:35+0000\n"
10+
"PO-Revision-Date: 2024-11-05 18:38+0100\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.4.4\n"
19+
20+
#. module: product_variant_template_reassign
21+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
22+
msgid ""
23+
"<i class=\"fa fa-exclamation-triangle\"/> No attributes available for "
24+
"create a new variant in the target template"
25+
msgstr ""
26+
"<i class=\"fa fa-exclamation-triangle\"/> No hay atributos disponibles para "
27+
"crear una nueva variante en la plantilla de destino"
28+
29+
#. module: product_variant_template_reassign
30+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
31+
msgid ""
32+
"<i class=\"fa fa-exclamation-triangle\"/> Reassigning this template variant "
33+
"to the selected target\n"
34+
" <strong>can't be undone</strong>"
35+
msgstr ""
36+
"<i class=\"fa fa-exclamation-triangle\"/> Reasignar la variante de esta "
37+
"plantilla al objetivo seleccionado <strong>no se puede deshacer</strong>"
38+
39+
#. module: product_variant_template_reassign
40+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__allowed_attribute_value_ids
41+
msgid "Allowed Attribute Value"
42+
msgstr "Valor de atributo permitido"
43+
44+
#. module: product_variant_template_reassign
45+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__allowed_target_product_template_ids
46+
msgid "Allowed Target Product Template"
47+
msgstr "Plantilla de producto destino permitida"
48+
49+
#. module: product_variant_template_reassign
50+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__attribute_value_ids
51+
msgid "Attribute Value"
52+
msgstr "Valor de atributo"
53+
54+
#. module: product_variant_template_reassign
55+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
56+
msgid "Cancel"
57+
msgstr "Cancelar"
58+
59+
#. module: product_variant_template_reassign
60+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__create_uid
61+
msgid "Created by"
62+
msgstr "Creado por"
63+
64+
#. module: product_variant_template_reassign
65+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__create_date
66+
msgid "Created on"
67+
msgstr "Creado el"
68+
69+
#. module: product_variant_template_reassign
70+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__display_name
71+
msgid "Display Name"
72+
msgstr "Nombre mostrado"
73+
74+
#. module: product_variant_template_reassign
75+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__id
76+
msgid "ID"
77+
msgstr "ID (identificación)"
78+
79+
#. module: product_variant_template_reassign
80+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant____last_update
81+
msgid "Last Modified on"
82+
msgstr "Última modificación en"
83+
84+
#. module: product_variant_template_reassign
85+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__write_uid
86+
msgid "Last Updated by"
87+
msgstr "Última actualización de"
88+
89+
#. module: product_variant_template_reassign
90+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__write_date
91+
msgid "Last Updated on"
92+
msgstr "Última actualización en"
93+
94+
#. module: product_variant_template_reassign
95+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__method
96+
msgid "Method"
97+
msgstr "Método"
98+
99+
#. module: product_variant_template_reassign
100+
#: model:ir.model.fields.selection,name:product_variant_template_reassign.selection__reassign_variant__method__orm
101+
msgid "ORM - Try to respect Odoo's data flows"
102+
msgstr "ORM - Intentar respetar los flujos de datos de Odoo"
103+
104+
#. module: product_variant_template_reassign
105+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__origin_product_template_id
106+
msgid "Origin Product Template"
107+
msgstr "Plantilla de producto de origen"
108+
109+
#. module: product_variant_template_reassign
110+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
111+
msgid "Reassign"
112+
msgstr "Reasignar"
113+
114+
#. module: product_variant_template_reassign
115+
#: model:ir.actions.act_window,name:product_variant_template_reassign.reassign_variant_action
116+
msgid "Reassign variant"
117+
msgstr "Reasignar variante"
118+
119+
#. module: product_variant_template_reassign
120+
#: model:ir.model,name:product_variant_template_reassign.model_reassign_variant
121+
msgid "Reassign variant template"
122+
msgstr "Reasignar plantilla de producto"
123+
124+
#. module: product_variant_template_reassign
125+
#: model:ir.model.fields.selection,name:product_variant_template_reassign.selection__reassign_variant__method__sql
126+
msgid "SQL - When the first on fails"
127+
msgstr "SQL - Cuando anterior falla"
128+
129+
#. module: product_variant_template_reassign
130+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
131+
msgid "Select the target template"
132+
msgstr "Seleccionar la plantilla de destino"
133+
134+
#. module: product_variant_template_reassign
135+
#: model:ir.model.fields,field_description:product_variant_template_reassign.field_reassign_variant__target_product_template_id
136+
msgid "Target Product Template"
137+
msgstr "Plantilla de producto de destino"
138+
139+
#. module: product_variant_template_reassign
140+
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
141+
#, python-format
142+
msgid ""
143+
"The selected attributes didn't generate a variant in the target template"
144+
msgstr ""
145+
"Los atributos seleccionados no han generado una variante en la plantilla de "
146+
"destino"
147+
148+
#. module: product_variant_template_reassign
149+
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
150+
#, python-format
151+
msgid ""
152+
"The selected attributes generate more than one variant. Refine your "
153+
"configuration"
154+
msgstr ""
155+
"Los atributos seleccionados generan más de una variante. Refine su "
156+
"configuración"
157+
158+
#. module: product_variant_template_reassign
159+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
160+
msgid ""
161+
"This will merge the current template into the selected one and it can't be "
162+
"undone"
163+
msgstr ""
164+
"Estos fusionará la plantilla de origen en la plantilla destino y esto no se "
165+
"puede deshacer"
166+
167+
#. module: product_variant_template_reassign
168+
#: model_terms:ir.ui.view,arch_db:product_variant_template_reassign.reassign_variant_form
169+
msgid "Variant to move"
170+
msgstr "Variante a mover"
171+
172+
#. module: product_variant_template_reassign
173+
#: code:addons/product_variant_template_reassign/wizards/reassign_variant.py:0
174+
#, python-format
175+
msgid "You can only reassign unique variant products"
176+
msgstr "Solo se pueden reasignar plantillas con variante única"

0 commit comments

Comments
 (0)