Skip to content

Commit 14fc5f4

Browse files
[MIG] sale_variant_configurator: Migration to version 17.0
1 parent f70f5e2 commit 14fc5f4

8 files changed

Lines changed: 622 additions & 205 deletions

File tree

Lines changed: 61 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,87 @@
1-
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2-
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
3-
:alt: License: AGPL-3
4-
51
=======================
62
Sale - Product variants
73
=======================
84

9-
This module allows you to create the product variant when a sale order is
10-
confirmed. It adds to the sale line a product configurator, so that selecting
11-
a product and its attributes can serve for creating/selecting the product
12-
variant.
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:18bfa799a106a4a2a69d07c2500e590661f35664360a88d85d48d7ef6d3dfd3c
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Production/Stable
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/17.0/sale_variant_configurator
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-17-0/product-variant-17-0-sale_variant_configurator
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=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows you to create the product variant when a sale order
32+
is confirmed. It adds to the sale line a product configurator, so that
33+
selecting a product and its attributes can serve for creating/selecting
34+
the product variant.
1335

14-
Usage
15-
=====
36+
**Table of contents**
1637

17-
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
18-
:alt: Try me on Runbot
19-
:target: https://runbot.odoo-community.org/runbot/137/11.0
38+
.. contents::
39+
:local:
2040

2141
Bug Tracker
2242
===========
2343

24-
Bugs are tracked on `GitHub Issues
25-
<https://github.com/OCA/product-variant/issues>`_. In case of trouble, please
26-
check there if your issue has already been reported. If you spotted it first,
27-
help us smash it by providing detailed and welcomed feedback.
44+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-variant/issues>`_.
45+
In case of trouble, please check there if your issue has already been reported.
46+
If you spotted it first, help us to smash it by providing a detailed and welcomed
47+
`feedback <https://github.com/OCA/product-variant/issues/new?body=module:%20sale_variant_configurator%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48+
49+
Do not contact contributors directly about support or help with technical issues.
2850

2951
Credits
3052
=======
3153

54+
Authors
55+
-------
56+
57+
* OdooMRP team
58+
* AvanzOSC
59+
* Tecnativa
60+
3261
Contributors
3362
------------
34-
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
35-
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
36-
* Ana Juaristi <ajuaristio@gmail.com>
37-
* David Vidal <david.vidal@tecnativa.com>
3863

39-
Maintainer
40-
----------
64+
- Oihane Crucelaegui oihanecrucelaegi@avanzosc.es
65+
- Pedro M. Baeza pedro.baeza@tecnativa.com
66+
- Ana Juaristi ajuaristio@gmail.com
67+
- David Vidal david.vidal@tecnativa.com
68+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
69+
70+
- Bhavesh Heliconia
71+
72+
Maintainers
73+
-----------
74+
75+
This module is maintained by the OCA.
4176

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

46-
This module is maintained by the OCA.
47-
4881
OCA, or the Odoo Community Association, is a nonprofit organization whose
4982
mission is to support the collaborative development of Odoo features and
5083
promote its widespread use.
5184

52-
To contribute to this module, please visit https://odoo-community.org.
85+
This module is part of the `OCA/product-variant <https://github.com/OCA/product-variant/tree/17.0/sale_variant_configurator>`_ project on GitHub.
86+
87+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

sale_variant_configurator/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "Sale - Product variants",
99
"summary": "Product variants in sale management",
10-
"version": "16.0.1.0.0",
10+
"version": "17.0.1.0.0",
1111
"development_status": "Production/Stable",
1212
"license": "AGPL-3",
1313
"depends": ["sale", "product_variant_configurator"],

sale_variant_configurator/hooks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
33

44

5-
def assign_product_template(cr, registry):
5+
def assign_product_template(env):
66
"""This post-init-hook will update all existing sale.order.line"""
7+
cr = env.cr
78
cr.execute(
89
"""
910
UPDATE sale_order_line AS line
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
2+
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
3+
- Ana Juaristi <ajuaristio@gmail.com>
4+
- David Vidal <david.vidal@tecnativa.com>
5+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
6+
- Bhavesh Heliconia
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This module allows you to create the product variant
2+
when a sale order is confirmed. It adds to the sale line a
3+
product configurator, so that selecting a product and its attributes
4+
can serve for creating/selecting the product variant.

0 commit comments

Comments
 (0)