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] sale_variant_configurator: Migration to 18.0 #393

Open
wants to merge 24 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
013056f
sale_variant_configurator: Migration to 9.0
pedrobaeza Dec 7, 2016
a30d0fc
[MIG] sale_variant_configurator: Migration to 10.0
chienandalu Jul 6, 2017
709e640
[IMP] sale_variant_configurator: Avoid warning on non existing field
pedrobaeza Dec 4, 2017
2f2480b
[FIX] sale_variant_configurator: Don't choke on attribute name
pedrobaeza Dec 22, 2017
86e5377
[UPD] Update sale_variant_configurator.pot
oca-travis Jun 23, 2018
09aa801
[MIG] sale_variant_configurator: Migration to 11.0
angelmoya Sep 17, 2018
5da8213
[FIX] sale_variant_configurator: typo, field does not exist
cubells Oct 25, 2018
4f746a4
[FIX] *_variant_configurator: don't lose attribute on save
pedrobaeza Nov 29, 2018
e0cfc86
[FIX] sale_variant_configurator: attribute lines are not created
cubells Dec 5, 2018
f926c39
[11.0][FIX] Filter products according to the view
SalahAdDin Dec 12, 2018
78ef6ea
[FIX] sale_variant_configurator: Proper SO line description
pedrobaeza Jan 30, 2019
3e5f4ed
[FIX] sale_variant_configurator: Don't lose sales description
pedrobaeza Jan 30, 2019
d45a964
[FIX+IMP] sale_variant_configurator: Variant creation when confirmed
pedrobaeza Feb 1, 2019
6e6b05e
[FIX] sale_variant_configurator: Return value in action_confirm
pedrobaeza Feb 26, 2019
31cc5fc
[ADD] icon.png
OCA-git-bot Apr 3, 2019
4c6f0e5
[FIX] broken test in sale_variant_configurator
gurneyalex Feb 10, 2020
87d3abd
"[IMP] sale_variant_configurator: black, isort, prettier"
chienandalu Jan 25, 2021
c03ea19
[MIG] sale_variant_configurator: Migration to 13.0
chienandalu Jan 27, 2021
ae55472
[FIX] sale_variant_configurator: Populate product description in cust…
pedrobaeza Nov 18, 2021
b092d43
[IMP] sale_variant_configurator: pre-commit stuff
carolinafernandez-tecnativa Jan 16, 2024
c00b0f1
[MIG] sale_variant_configurator: Migration to version 16.0
carolinafernandez-tecnativa Jan 17, 2024
acf67e8
[UPD] Update sale_variant_configurator.pot
Jun 22, 2024
6ee017c
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Jul 5, 2024
46f0086
[MIG] sale_variant_configurator: Migration to 18.0
HeliconiaSolutions Jan 17, 2025
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
52 changes: 52 additions & 0 deletions sale_variant_configurator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=======================
Sale - Product variants
=======================

This module allows you to create the product variant when a sale order is
confirmed. It adds to the sale line a product configurator, so that selecting
a product and its attributes can serve for creating/selecting the product
variant.

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/137/11.0

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 smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------
* Oihane Crucelaegui <[email protected]>
* Pedro M. Baeza <[email protected]>
* Ana Juaristi <[email protected]>
* David Vidal <[email protected]>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
4 changes: 4 additions & 0 deletions sale_variant_configurator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from .hooks import assign_product_template
23 changes: 23 additions & 0 deletions sale_variant_configurator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2014-2016 Oihane Crucelaegui - AvanzOSC
# Copyright 2017 David Vidal <[email protected]>
# Copyright 2015-2021 Tecnativa - Pedro M. Baeza
# Copyright 2024 Tecnativa - Carolina Fernandez
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Sale - Product variants",
"summary": "Product variants in sale management",
"version": "16.0.1.0.0",
"development_status": "Production/Stable",
"license": "AGPL-3",
"depends": ["sale", "product_variant_configurator"],
"author": "OdooMRP team,"
"AvanzOSC,"
"Tecnativa,"
"Odoo Community Association (OCA)",
"category": "Sales Management",
"website": "https://github.com/OCA/product-variant",
"data": ["views/sale_view.xml"],
"installable": True,
"post_init_hook": "assign_product_template",
}
13 changes: 13 additions & 0 deletions sale_variant_configurator/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# © 2014-2016 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html


def assign_product_template(cr, registry):
"""This post-init-hook will update all existing sale.order.line"""
cr.execute(
"""
UPDATE sale_order_line AS line
SET product_tmpl_id = product_product.product_tmpl_id
FROM product_product
WHERE line.product_id = product_product.id;"""
)
61 changes: 61 additions & 0 deletions sale_variant_configurator/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_variant_configurator
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-04 12:43+0000\n"
"PO-Revision-Date: 2017-12-04 12:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\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"

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_non_accountable_null_fields
msgid "Forbidden values on non-accountable sale order line"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_accountable_required_fields
msgid "Missing required fields on accountable sale order line."
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_id
msgid "Product"
msgstr ""

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_form
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_line_tree
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Product Template"
msgstr "Plantilla del producte"

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_tmpl_id
msgid "Product Template (no related)"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Template"
msgstr "Plantilla"
61 changes: 61 additions & 0 deletions sale_variant_configurator/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_variant_configurator
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-04 12:43+0000\n"
"PO-Revision-Date: 2017-12-04 12:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\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"

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_non_accountable_null_fields
msgid "Forbidden values on non-accountable sale order line"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_accountable_required_fields
msgid "Missing required fields on accountable sale order line."
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_id
msgid "Product"
msgstr ""

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_form
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_line_tree
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Product Template"
msgstr "Produktvorlage"

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_tmpl_id
msgid "Product Template (no related)"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Template"
msgstr "Vorlage"
68 changes: 68 additions & 0 deletions sale_variant_configurator/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_variant_configurator
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-04 12:43+0000\n"
"PO-Revision-Date: 2021-03-16 18:45+0000\n"
"Last-Translator: Ana Suárez <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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.3.2\n"

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_non_accountable_null_fields
msgid "Forbidden values on non-accountable sale order line"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_accountable_required_fields
msgid "Missing required fields on accountable sale order line."
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_id
msgid "Product"
msgstr ""

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_form
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_line_tree
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Product Template"
msgstr "Plantilla producto"

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_tmpl_id
msgid "Product Template (no related)"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea pedido de venta"

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Template"
msgstr "Plantilla"

#~ msgid "Customer"
#~ msgstr "Cliente"

#~ msgid "Quotation"
#~ msgstr "Presupuesto"
69 changes: 69 additions & 0 deletions sale_variant_configurator/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_variant_configurator
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-04 12:43+0000\n"
"PO-Revision-Date: 2021-04-04 20:46+0000\n"
"Last-Translator: Ignacio Buioli <[email protected]>\n"
"Language-Team: Spanish (Argentina) (https://www.transifex.com/oca/"
"teams/23907/es_AR/)\n"
"Language: es_AR\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: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_non_accountable_null_fields
msgid "Forbidden values on non-accountable sale order line"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.constraint,message:sale_variant_configurator.constraint_sale_order_line_accountable_required_fields
msgid "Missing required fields on accountable sale order line."
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_id
msgid "Product"
msgstr ""

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_form
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_order_line_tree
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Product Template"
msgstr "Plantilla del Producto"

#. module: sale_variant_configurator
#: model:ir.model.fields,field_description:sale_variant_configurator.field_sale_order_line__product_tmpl_id
msgid "Product Template (no related)"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_variant_configurator
#: model:ir.model,name:sale_variant_configurator.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea del Pedido de Ventas"

#. module: sale_variant_configurator
#: model_terms:ir.ui.view,arch_db:sale_variant_configurator.view_sales_order_line_filter
msgid "Template"
msgstr "Plantilla"

#~ msgid "Customer"
#~ msgstr "Cliente"

#~ msgid "Quotation"
#~ msgstr "Presupuesto"
Loading
Loading