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

[17.0][MIG] product_variant_configurator: Migration to 17.0 #350

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
fbaa183
product_variant_configurator
zakiuu Oct 22, 2016
987426a
purchase_variant_configurator: This module has been ported from the o…
zakiuu Oct 24, 2016
66d9be6
fix warning when setting last attribute
sbidoul Oct 30, 2016
998e07e
Add some tests to the product_variant_configurator (#4)
Nov 1, 2016
40c10e3
disable test of onchange_no_create_variant
sbidoul Nov 1, 2016
75733c8
typo in product attributes validity constraint [IMP] attribute prices…
sbidoul Nov 2, 2016
32fa37f
remove old api method that is not used, untested and unmaintained
sbidoul Nov 3, 2016
79743dc
Display product.product from the same way in the purchase order
zakiuu Nov 9, 2016
4fdc085
Test configuration validity before confirming the purchase order
zakiuu Nov 12, 2016
52c6a51
much simpler purchase_product_variant_configurator (no code, view only)
sbidoul Nov 12, 2016
55633bc
Add new field to compute when the compute can be created [FIX] Use sa…
lmignon Nov 9, 2016
de07efc
improve visibility rule for the create product checkbox
sbidoul Nov 9, 2016
40d72f5
*_variant_configurator:
lmignon Nov 11, 2016
a960486
*_variant_configurator
lmignon Nov 14, 2016
ef0708c
Fix _compute_can_be_created method
zakiuu Nov 15, 2016
7499272
product.configurator.attribute: delcare ondelete on owner_id The 'ond…
lmignon Nov 15, 2016
63f7f29
product_attribute._compute_can_be_created: don't exit from the loop o…
lmignon Nov 15, 2016
c4c30d3
prefix onchange methods with _
sbidoul Nov 20, 2016
c12389d
product_variant_configurator: fix bug in create_variant_ids s/not sel…
zakiuu Dec 4, 2016
1f177e9
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
6c1254a
[MIG] product_variant_configurator: Migration to 10.0
chienandalu Jul 4, 2017
5c26f66
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
b6765da
[FIX] *_variant_configurator*: Adjust things for proper purchase on c…
pedrobaeza Dec 14, 2017
501e932
OCA Transbot updated translations from Transifex
oca-transbot Dec 16, 2017
6f59da9
[IMP] product_variant_configurator: Add required flag to attribute lines
pedrobaeza Dec 15, 2017
c55823b
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
873db60
[UPD] Update product_variant_configurator.pot
oca-travis Jun 23, 2018
2a21540
[MIG] product_variant_configurator: Migration to 11.0
angelmoya Oct 24, 2018
3ffb88f
[UPD] Update product_variant_configurator.pot
oca-travis Oct 24, 2018
cc04f01
Update translation files
oca-transbot Dec 9, 2018
eab523c
[FIX] product_variant_configurator: Fix purchase_variant_configurator…
pedrobaeza Jan 15, 2019
51c10fb
[IMP] product_variant_configurator: Fill configurator vals in creation
pedrobaeza Jan 31, 2019
abd91d2
[FIX] product_variant_configurator: Don't empty attributes on consecu…
pedrobaeza Jan 31, 2019
981c50b
[UPD] Update product_variant_configurator.pot
oca-travis Feb 1, 2019
31c9d50
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
a7f211c
Update translation files
oca-transbot Mar 3, 2019
6d2fa19
[11.0][FIX] product_variant_configurator
AdriaGForgeFlow Mar 11, 2019
8245a22
[ADD] icon.png
OCA-git-bot Apr 3, 2019
0d2669a
[12.0][MIG] product_variant_configurator
AdriaGForgeFlow Jun 19, 2019
c2807e8
[UPD] Update product_variant_configurator.pot
oca-travis Sep 14, 2020
c12fe7e
[UPD] README.rst
OCA-git-bot Sep 14, 2020
b587909
product_variant_configurator 12.0.1.0.1
OCA-git-bot Sep 14, 2020
1151839
[IMP] product_variant_configurator: black, isort, prettier
HviorForgeFlow Sep 14, 2020
9e3ff7f
[MIG] product_variant_configurator: Migration to 13.0
HviorForgeFlow Sep 14, 2020
9e46ea0
fixup! name_get show attributes for no_variant ones
HviorForgeFlow Sep 16, 2020
2ec58c7
[FIX] product_variant_configurator: create_variant_if_needed
ThomasBinsfeld Oct 28, 2020
78fa01e
[UPD] Update product_variant_configurator.pot
oca-travis Nov 19, 2020
1bce869
[UPD] README.rst
OCA-git-bot Nov 19, 2020
02e6b16
[13.0][IMP] product_variant_configurator: Add website_sale incompatib…
HviorForgeFlow Nov 25, 2020
e51bf74
[UPD] README.rst
OCA-git-bot Nov 28, 2020
63aba6e
Update translation files
oca-transbot Nov 28, 2020
7dfbfb8
[MIG] sale_variant_configurator: Migration to 13.0
chienandalu Jan 27, 2021
d0a9a30
Translated using Weblate (Dutch)
tarteo Jan 29, 2021
0345749
[UPD] Update product_variant_configurator.pot
oca-travis Jan 31, 2021
d81965a
Update translation files
oca-transbot Jan 31, 2021
87ab484
[IMP] product_variant_configurator: Use Many2oneReference + index
pedrobaeza Feb 7, 2021
5de7e51
product_variant_configurator 13.0.1.1.0
OCA-git-bot Feb 8, 2021
ecbdb86
[FIX] product_variant_configurator: attribute of product.configurator…
ThomasBinsfeld Mar 4, 2021
8bdac0c
Translated using Weblate (Spanish)
anasuarez1 Mar 16, 2021
ba33cf6
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 4, 2021
a9bb332
[IMP] product_variant_configurator: Resilient tests
pedrobaeza Sep 23, 2021
08c0e9d
product_variant_configurator 13.0.1.1.1
OCA-git-bot Oct 28, 2021
ae3e21e
[IMP] product_variant_configurator: Performance on domain
pedrobaeza Oct 28, 2021
51b43c0
[13.0][NEW]product_variant_configurator_website_sale
Rad0van Jun 24, 2021
d0e53e2
[UPD] README.rst
OCA-git-bot Nov 27, 2021
ab4155f
[FI48] Fix product_variant_configurator
HviorForgeFlow Dec 13, 2021
e28e0ab
[imp] product_variant_configurator: add context parameter bypass_vari…
JordiBForgeFlow Feb 4, 2022
12413d8
[UPD] Update product_variant_configurator.pot
oca-travis Mar 14, 2022
af907e6
product_variant_configurator 13.0.1.1.3
OCA-git-bot Mar 14, 2022
8a150b3
Update translation files
oca-transbot Mar 14, 2022
83a10c2
product_variant_configurator 13.0.1.1.4
OCA-git-bot Mar 16, 2022
8faa7b0
[FIX] product_variant_configurator: _build_attributes_domain
May 6, 2022
1d00f32
product_variant_configurator 13.0.1.1.5
OCA-git-bot May 6, 2022
5fd5794
[IMP] product_variant_configurator: black, isort, prettier
HviorForgeFlow Jul 7, 2022
3ff36d9
[MIG] product_variant_configurator: Migration to 14.0
HviorForgeFlow Jul 7, 2022
0c17f0b
[MIG] product_variant_configurator: Migration to 15.0
JasminSForgeFlow Jul 14, 2022
bc72dab
[UPD] Update product_variant_configurator.pot
Sep 2, 2022
9577202
[UPD] README.rst
OCA-git-bot Sep 2, 2022
d0c19b6
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
b2c34f4
Translated using Weblate (Italian)
francesco-ooops Jan 18, 2023
2b65375
[MIG] product_variant_configurator: Migration to 16.0
SergioPSV Mar 3, 2023
c696ec6
Update README.rst
SergioPSV Jun 1, 2023
a9a5be1
[MIG] product_variant_configurator: Migration to 16.0. Supersede migr…
EvaSForgeFlow Sep 8, 2023
f8fad9c
[UPD] Update product_variant_configurator.pot
Oct 2, 2023
b52ef40
[BOT] post-merge updates
OCA-git-bot Oct 2, 2023
ac44050
Update translation files
weblate Oct 9, 2023
18fde6b
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
a2c0cd1
Translated using Weblate (Italian)
mymage Oct 13, 2023
05a478f
Translated using Weblate (Italian)
mymage Oct 29, 2023
f67be6b
Translated using Weblate (Italian)
mymage Nov 9, 2023
b44b286
Translated using Weblate (Italian)
mymage Nov 10, 2023
705d6d0
Translated using Weblate (Italian)
mymage Nov 10, 2023
4eed8ba
[16.0][FIX] product_variant_configurator: implement model_create_multi
alexbottemanne Dec 26, 2023
2457813
[BOT] post-merge updates
OCA-git-bot Jan 5, 2024
a3348c2
[FIX] product_variant_configurator: Solve recursion error.
JordiBForgeFlow Jan 11, 2024
ed128f1
[UPD] Update product_variant_configurator.pot
Jan 11, 2024
ff92e6c
[BOT] post-merge updates
OCA-git-bot Jan 11, 2024
eda6650
Update translation files
weblate Jan 11, 2024
2c995ea
Translated using Weblate (Spanish)
Ivorra78 Jan 11, 2024
88343c7
Translated using Weblate (Italian)
mymage Jan 15, 2024
b864261
[UPD] Update product_variant_configurator.pot
Feb 14, 2024
a1b7bcf
Update translation files
weblate Feb 14, 2024
21fd7a1
Translated using Weblate (Spanish)
Ivorra78 Feb 14, 2024
de0150f
Translated using Weblate (Italian)
mymage Feb 16, 2024
40f8c72
[FIX] product_variant_configurator: returning domains in onchange doe…
jdoutreloux Mar 7, 2024
ccd38c6
[UPD] Update product_variant_configurator.pot
Apr 2, 2024
ac32cf0
[BOT] post-merge updates
OCA-git-bot Apr 2, 2024
0ff707a
Update translation files
weblate Apr 2, 2024
d719d33
Translated using Weblate (Italian)
mymage Apr 3, 2024
87d8e1f
[IMP] product_variant_configurator: pre-commit stuff
BT-dmoreno Apr 24, 2024
588f27d
[MIG] Apply framework migration
BT-dmoreno Apr 24, 2024
d4c67a3
[MIG] Run pre-commit again
BT-dmoreno Apr 29, 2024
0ee5f8d
[MIG] Make product variant form view look prettier.
BT-dmoreno May 6, 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
Binary file added pandoc-3.1.13-1-amd64.deb
Binary file not shown.
146 changes: 146 additions & 0 deletions product_variant_configurator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
============================
Product Variant Configurator
============================

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

.. |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/17.0/product_variant_configurator
: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-17-0/product-variant-17-0-product_variant_configurator
: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=17.0
:alt: Try me on Runboat

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

Provides an abstract model for product variant configuration. It
provides the basic functionality for presenting a table with the
attributes of a template and the possibility to select one of the valid
values. You can try this functionality creating a product variant
directly selecting a product template that has attributes.

This module also prevents in a configurable way the creation of the
product variants when defining the attributes and attribute values of
the product template.

**Table of contents**

.. contents::
:local:

Configuration
=============

(after installing sale_management application)

To configure the creation of the variants behaviour, you need to:

1. Go to ``Sales > Configuration > Settings``, and select "Attributes
and Variants (Set product attributes (e.g. color, size) to sell
variants)" on "Product Catalog" section.
2. Go to ``Sales > Catalog > Products``, and select a product.
3. On the Variants tab edit the value of the field ``Variant Creation``.
4. If you want to stop the automatic creation of the variant, and have
the same behaviour for all the products in the same category, go to
``Inventory > Configuration > Product Categories``, select the
category and check the checkbox
``Don't create variants automatically``.

Usage
=====

(after installing sale_management application)

1. Go to ``Sales > Catalog > Product Variants``.
2. Click on "Create" button for creating a new one.
3. On the field "Product Template", select a product template that has
several attributes.
4. A table with the attributes of the template will appear below.
5. Select all the attribute values and click on "Save" button.
6. A new product variant will be created for that attributes.
7. An error will raise if there's another variant with the same
attribute values or if you haven't filled all the required values.

**Developers**

To use product configurator in your model, you need to:

1. The product.configurator is an abstract model, hence, to be used it
must be inherited in your model:
2. If the model you're inheriting has ``name`` attribute, and it uses
the related parameter you must override it.



::

class AModel(models.Model):
_inherit = ['module.model', 'product.configurator']
name = fields.Char(related="delegated_field.related_field")

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_configurator%0Aversion:%2017.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
-------

* AvanzOSC
* Tecnativa
* ACSONE SA/NV

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

- Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
- Ana Juaristi <ajuaristio@gmail.com>
- Thomas Binsfeld <thomas.binsfeld@acsone.eu>
- Zakaria Makrelouf (acsone) <z.makrelouf@gmail.com>
- Stéphane Bidoul <stephane.bidoul@acsone.eu>
- Laurent Mignon <laurent.mignon@acsone.eu>
- David Vidal <david.vidal@tecnativa.com>
- Simone Versienti <s.versienti@apuliasoftware.it>
- Adria Gil Sorribes <adria.gil@forgeflow.com>
- Héctor Villarreal Ortega <hector.villarreal@forgeflow.com>

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-variant <https://github.com/OCA/product-variant/tree/17.0/product_variant_configurator>`_ 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_configurator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions product_variant_configurator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2015 Oihane Crucelaegui (AvanzOSC)
# Copyright 2016 ACSONE SA/NV
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# Copyright 2015-2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Variant Configurator",
"summary": "Provides an abstract model for product variant configuration.",
"version": "17.0.1.0.0",
"category": "Product Variant",
"license": "AGPL-3",
"author": "AvanzOSC, Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-variant",
"depends": ["product"],
"data": [
"security/product_configurator_security.xml",
"security/ir.model.access.csv",
"views/product_configurator_attribute.xml",
"views/inherited_product_template_views.xml",
"views/inherited_product_product_views.xml",
"views/inherited_product_category_views.xml",
"views/inherited_product_attribute_views.xml",
],
}
Loading
Loading