-
-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
47 changed files
with
2,547 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.