Skip to content

Commit 7802b2c

Browse files
sbejaouiCRogos
authored andcommitted
[MIG] sale_product_set: Migration to 18.0
TT54298
1 parent f4873dd commit 7802b2c

11 files changed

Lines changed: 100 additions & 74 deletions

File tree

sale_product_set/README.rst

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
================
2-
Sale product set
3-
================
1+
=================
2+
Sales product set
3+
=================
44

55
..
66
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:76238ca5d99bdb70bb32f9011a51fad3319dbd5390abdbef435242cea4e44ca8
10+
!! source digest: sha256:2f7beee55c7bf24a53bdf20c9eaa6dec4098d084c0bdb197a8b3702fae33e2a1
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,28 +17,26 @@ Sale product set
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_product_set
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_product_set
2121
:alt: OCA/sale-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_product_set
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_product_set
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
A **product set** is a list of products which end customers aren't
3232
aware, this list is defined by sales manager.
3333

34-
This module aims to help salesman to quickly create several sale order
35-
lines at once in a quotation.
34+
This module aims to load a product set in a sales order though a wizard.
35+
The product set is a list of products and quantities that gets inserted
36+
as separate sales order lines.
3637

37-
After a *product set* is added to the sale order, each line can be
38-
updated or removed as any other sale order lines.
39-
40-
This differs from packing products as you don't follow *product set* are
41-
not linked to sale order lines once they are added.
38+
After a *product set* is added to the sales order, each line can be
39+
updated or removed as any other sales order lines.
4240

4341
**Table of contents**
4442

@@ -48,18 +46,16 @@ not linked to sale order lines once they are added.
4846
Usage
4947
=====
5048

51-
To use this module, you need to:
52-
53-
- Define a *product set* as sale manager:
49+
- Define a *product set* as sales manager:
5450

5551
- choose products
56-
- for each products, define a quantity.
57-
- for each products (if Discounts setting is active), define a
58-
discount or leave default value
52+
- for each product, define a quantity.
53+
- for each product (if Discounts setting is active), define a discount
54+
or leave default value
5955
- Sort *set* lines, this order will be the default when added into the
6056
quotation
6157

62-
- Then you can remove or update added lines as any other sale order
58+
- Then you can remove or update added lines as any other sales order
6359
lines.
6460

6561
|Sale order|
@@ -72,7 +68,7 @@ Bug Tracker
7268
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
7369
In case of trouble, please check there if your issue has already been reported.
7470
If you spotted it first, help us to smash it by providing a detailed and welcomed
75-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_product_set%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
71+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_product_set%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7672

7773
Do not contact contributors directly about support or help with technical issues.
7874

@@ -98,6 +94,7 @@ Contributors
9894
- `Tecnativa <https://www.tecnativa.com>`__:
9995

10096
- Pilar Vargas
97+
- Juan Carlos Oñate
10198

10299
- Nils Coenen <nils.coenen@nico-solutions.de>
103100

@@ -121,6 +118,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
121118
mission is to support the collaborative development of Odoo features and
122119
promote its widespread use.
123120

124-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_product_set>`_ project on GitHub.
121+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_product_set>`_ project on GitHub.
125122

126123
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

sale_product_set/__manifest__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Copyright 2018 Camptocamp, ACSONE SA/NV
33
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
44
{
5-
"name": "Sale product set",
6-
"category": "Sale",
5+
"name": "Sales product set",
6+
"category": "Sales",
77
"license": "AGPL-3",
88
"author": "Anybox, Odoo Community Association (OCA)",
9-
"version": "17.0.1.0.0",
9+
"version": "18.0.1.0.0",
1010
"website": "https://github.com/OCA/sale-workflow",
1111
"depends": ["sale", "sale_management", "product_set"],
1212
"data": [

sale_product_set/i18n/sale_product_set.pot

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 17.0\n"
7+
"Project-Id-Version: Odoo Server 18.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
@@ -49,11 +49,27 @@ msgstr ""
4949
msgid "Add set to sale order"
5050
msgstr ""
5151

52+
#. module: sale_product_set
53+
#: model_terms:ir.ui.view,arch_db:sale_product_set.res_config_settings_inherit_view
54+
msgid ""
55+
"Archive/unarchive product sets related to partners together with partner"
56+
msgstr ""
57+
5258
#. module: sale_product_set
5359
#: model_terms:ir.ui.view,arch_db:sale_product_set.product_set_add_form_view
5460
msgid "Cancel"
5561
msgstr ""
5662

63+
#. module: sale_product_set
64+
#: model:ir.model,name:sale_product_set.model_res_config_settings
65+
msgid "Config Settings"
66+
msgstr ""
67+
68+
#. module: sale_product_set
69+
#: model:ir.model,name:sale_product_set.model_res_partner
70+
msgid "Contact"
71+
msgstr ""
72+
5773
#. module: sale_product_set
5874
#: model:ir.model.fields,field_description:sale_product_set.field_sale_product_set_wizard__create_uid
5975
msgid "Created by"
@@ -100,6 +116,11 @@ msgstr ""
100116
msgid "Last Updated on"
101117
msgstr ""
102118

119+
#. module: sale_product_set
120+
#: model_terms:ir.ui.view,arch_db:sale_product_set.res_config_settings_inherit_view
121+
msgid "Product Sets"
122+
msgstr ""
123+
103124
#. module: sale_product_set
104125
#: model:ir.model.fields,field_description:sale_product_set.field_sale_product_set_wizard__product_set_id
105126
#: model:ir.ui.menu,name:sale_product_set.menu_product_set_config
@@ -132,6 +153,18 @@ msgstr ""
132153
msgid "Skip Existing Products"
133154
msgstr ""
134155

156+
#. module: sale_product_set
157+
#: model:ir.model.fields,field_description:sale_product_set.field_res_config_settings__archive_partner_product_sets
158+
msgid "Sync product sets active state with partner"
159+
msgstr ""
160+
161+
#. module: sale_product_set
162+
#: model:ir.model.fields,help:sale_product_set.field_res_config_settings__archive_partner_product_sets
163+
msgid ""
164+
"When a partner is archived or un-archived its product sets are "
165+
"archived or un-archived as well."
166+
msgstr ""
167+
135168
#. module: sale_product_set
136169
#: model:ir.model,name:sale_product_set.model_sale_product_set_wizard
137170
msgid "Wizard model to add product set into a quotation"
@@ -140,6 +173,5 @@ msgstr ""
140173
#. module: sale_product_set
141174
#. odoo-python
142175
#: code:addons/sale_product_set/wizard/sale_product_set_wizard.py:0
143-
#, python-format
144176
msgid "You can use a sale order assigned only to following partner(s): {}"
145177
msgstr ""

sale_product_set/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
- Manuel Regidor \<<manuel.regidor@sygel.es>\>
99
- [Tecnativa](https://www.tecnativa.com):
1010
- Pilar Vargas
11+
- Juan Carlos Oñate
1112
- Nils Coenen \<<nils.coenen@nico-solutions.de>\>
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
A **product set** is a list of products which end customers aren't
22
aware, this list is defined by sales manager.
33

4-
This module aims to help salesman to quickly create several sale order
5-
lines at once in a quotation.
4+
This module aims to load a product set in a sales order though a wizard. The product set is a list of products and quantities that gets inserted as separate sales order lines.
65

7-
After a *product set* is added to the sale order, each line can be
8-
updated or removed as any other sale order lines.
6+
After a *product set* is added to the sales order, each line can be
7+
updated or removed as any other sales order lines.
98

10-
This differs from packing products as you don't follow *product set* are
11-
not linked to sale order lines once they are added.

sale_product_set/readme/USAGE.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
To use this module, you need to:
2-
3-
- Define a *product set* as sale manager:
1+
- Define a *product set* as sales manager:
42
- choose products
5-
- for each products, define a quantity.
6-
- for each products (if Discounts setting is active), define a
3+
- for each product, define a quantity.
4+
- for each product (if Discounts setting is active), define a
75
discount or leave default value
86
- Sort *set* lines, this order will be the default when added into the
97
quotation
10-
11-
- Then you can remove or update added lines as any other sale order
8+
- Then you can remove or update added lines as any other sales order
129
lines.
1310

1411
![Sale order](/sale_product_set/static/description/sale_order.png)

sale_product_set/static/description/index.html

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Sale product set</title>
6+
<title>Sales product set</title>
77
<style type="text/css">
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -359,24 +360,23 @@
359360
</style>
360361
</head>
361362
<body>
362-
<div class="document" id="sale-product-set">
363-
<h1 class="title">Sale product set</h1>
363+
<div class="document" id="sales-product-set">
364+
<h1 class="title">Sales product set</h1>
364365

365366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
366367
!! This file is generated by oca-gen-addon-readme !!
367368
!! changes will be overwritten. !!
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369-
!! source digest: sha256:76238ca5d99bdb70bb32f9011a51fad3319dbd5390abdbef435242cea4e44ca8
370+
!! source digest: sha256:2f7beee55c7bf24a53bdf20c9eaa6dec4098d084c0bdb197a8b3702fae33e2a1
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_product_set"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_product_set"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_product_set"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_product_set"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372373
<p>A <strong>product set</strong> is a list of products which end customers aren’t
373374
aware, this list is defined by sales manager.</p>
374-
<p>This module aims to help salesman to quickly create several sale order
375-
lines at once in a quotation.</p>
376-
<p>After a <em>product set</em> is added to the sale order, each line can be
377-
updated or removed as any other sale order lines.</p>
378-
<p>This differs from packing products as you don’t follow <em>product set</em> are
379-
not linked to sale order lines once they are added.</p>
375+
<p>This module aims to load a product set in a sales order though a wizard.
376+
The product set is a list of products and quantities that gets inserted
377+
as separate sales order lines.</p>
378+
<p>After a <em>product set</em> is added to the sales order, each line can be
379+
updated or removed as any other sales order lines.</p>
380380
<p><strong>Table of contents</strong></p>
381381
<div class="contents local topic" id="contents">
382382
<ul class="simple">
@@ -393,18 +393,17 @@ <h1 class="title">Sale product set</h1>
393393
</div>
394394
<div class="section" id="usage">
395395
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
396-
<p>To use this module, you need to:</p>
397396
<ul class="simple">
398-
<li>Define a <em>product set</em> as sale manager:<ul>
397+
<li>Define a <em>product set</em> as sales manager:<ul>
399398
<li>choose products</li>
400-
<li>for each products, define a quantity.</li>
401-
<li>for each products (if Discounts setting is active), define a
402-
discount or leave default value</li>
399+
<li>for each product, define a quantity.</li>
400+
<li>for each product (if Discounts setting is active), define a discount
401+
or leave default value</li>
403402
<li>Sort <em>set</em> lines, this order will be the default when added into the
404403
quotation</li>
405404
</ul>
406405
</li>
407-
<li>Then you can remove or update added lines as any other sale order
406+
<li>Then you can remove or update added lines as any other sales order
408407
lines.</li>
409408
</ul>
410409
<p><img alt="Sale order" src="https://raw.githubusercontent.com/sale_product_set/static/description/sale_order.png" /></p>
@@ -414,7 +413,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
414413
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
415414
In case of trouble, please check there if your issue has already been reported.
416415
If you spotted it first, help us to smash it by providing a detailed and welcomed
417-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_product_set%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_product_set%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
418417
<p>Do not contact contributors directly about support or help with technical issues.</p>
419418
</div>
420419
<div class="section" id="credits">
@@ -438,6 +437,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
438437
<li>Manuel Regidor &lt;<a class="reference external" href="mailto:manuel.regidor&#64;sygel.es">manuel.regidor&#64;sygel.es</a>&gt;</li>
439438
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
440439
<li>Pilar Vargas</li>
440+
<li>Juan Carlos Oñate</li>
441441
</ul>
442442
</li>
443443
<li>Nils Coenen &lt;<a class="reference external" href="mailto:nils.coenen&#64;nico-solutions.de">nils.coenen&#64;nico-solutions.de</a>&gt;</li>
@@ -453,11 +453,13 @@ <h2><a class="toc-backref" href="#toc-entry-6">Other credits</a></h2>
453453
<div class="section" id="maintainers">
454454
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
455455
<p>This module is maintained by the OCA.</p>
456-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
456+
<a class="reference external image-reference" href="https://odoo-community.org">
457+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
458+
</a>
457459
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
458460
mission is to support the collaborative development of Odoo features and
459461
promote its widespread use.</p>
460-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_product_set">OCA/sale-workflow</a> project on GitHub.</p>
462+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_product_set">OCA/sale-workflow</a> project on GitHub.</p>
461463
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
462464
</div>
463465
</div>

sale_product_set/views/product_set.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<field name="inherit_id" ref="product_set.view_product_set_form" />
88
<field name="arch" type="xml">
99
<field name="quantity" position="after">
10-
<field name="discount" groups="product.group_discount_per_so_line" />
10+
<field name="discount" groups="sale.group_discount_per_so_line" />
1111
</field>
1212
</field>
1313
</record>

sale_product_set/views/product_set_line.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<odoo>
33
<record id="view_product_set_line_tree" model="ir.ui.view">
4-
<field name="name">product.set.line.tree</field>
4+
<field name="name">product.set.line.list</field>
55
<field name="model">product.set.line</field>
6-
<field name="type">tree</field>
6+
<field name="type">list</field>
77
<field name="inherit_id" ref="product_set.view_product_set_line_tree" />
88
<field name="arch" type="xml">
99
<field name="quantity" position="after">
10-
<field name="discount" groups="product.group_discount_per_so_line" />
10+
<field name="discount" groups="sale.group_discount_per_so_line" />
1111
</field>
1212
</field>
1313
</record>
14-
<menuitem
14+
<menuitem
1515
id="menu_product_set_line_config"
1616
parent="sale.product_menu_catalog"
1717
groups="sales_team.group_sale_manager"

0 commit comments

Comments
 (0)