Skip to content

Commit

Permalink
[MIG] sale_product_multi_add: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaisLForgeFlow committed Apr 29, 2024
1 parent c324b3d commit b2a8cb5
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 24 deletions.
14 changes: 8 additions & 6 deletions sale_product_multi_add/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Sale Product Multi Add

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

This module extends the functionality of sale module and allow you to
import multiple products into your current sale order.
This module extends the functionality of the Sales module by allowing
you to import multiple products into your current Sale Order.

**Table of contents**

Expand All @@ -39,13 +39,14 @@ import multiple products into your current sale order.
Usage
=====

This module add a button on sale order to import several products on
your current sale order. A wizard opens and allows the user to search
and select products.
This module adds a button on a Sale Order to import several products on
your current sale order. To use this module create a Sale Order and
click the button to open a wizard where you can add multiple products
and set the quantities.

|Sale Product Multi Add|

.. |Sale Product Multi Add| image:: https://raw.githubusercontent.com/sale_product_multi_add/static/src/description/sale_product_multi_add.png
.. |Sale Product Multi Add| image:: https://raw.githubusercontent.com/sale_product_multi_add/static/description/sale_product_multi_add.png

Bug Tracker
===========
Expand Down Expand Up @@ -76,6 +77,7 @@ Contributors
- Jonathan Oscategui Taza <[email protected]>

- Jacques-Etienne Baudoux (BCIM) <[email protected]>
- Anaïs López <[email protected]>

Maintainers
-----------
Expand Down
6 changes: 3 additions & 3 deletions sale_product_multi_add/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2016 Cédric Pigeon, ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2016-2024 Cédric Pigeon, ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Product Multi Add",
Expand All @@ -7,9 +7,9 @@
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"category": "Sale Management",
"version": "16.0.1.1.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["sale"],
"depends": ["sale_management"],
"data": [
"security/ir.model.access.csv",
"wizards/sale_import_products_view.xml",
Expand Down
1 change: 1 addition & 0 deletions sale_product_multi_add/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- [Pesol](https://www.pesol.es):
- Jonathan Oscategui Taza \<<[email protected]>\>
- Jacques-Etienne Baudoux (BCIM) \<<[email protected]>\>
- Anaïs López \<<[email protected]>\>
4 changes: 2 additions & 2 deletions sale_product_multi_add/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module extends the functionality of sale module and allow you to
import multiple products into your current sale order.
This module extends the functionality of the Sales module by allowing you to
import multiple products into your current Sale Order.
8 changes: 4 additions & 4 deletions sale_product_multi_add/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This module add a button on sale order to import several products on
your current sale order. A wizard opens and allows the user to search
and select products.
This module adds a button on a Sale Order to import several products on
your current sale order. To use this module create a Sale Order and click the button
to open a wizard where you can add multiple products and set the quantities.

![Sale Product Multi Add](/sale_product_multi_add/static/src/description/sale_product_multi_add.png)
![Sale Product Multi Add](/sale_product_multi_add/static/description/sale_product_multi_add.png)
14 changes: 8 additions & 6 deletions sale_product_multi_add/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ <h1 class="title">Sale Product Multi Add</h1>
!! source digest: sha256:24d09cb87549e85c76ed71630e10f71296fc78d91be245bfd8c531b330dacd8d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_multi_add"><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_multi_add"><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>
<p>This module extends the functionality of sale module and allow you to
import multiple products into your current sale order.</p>
<p>This module extends the functionality of the Sales module by allowing
you to import multiple products into your current Sale Order.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -386,10 +386,11 @@ <h1 class="title">Sale Product Multi Add</h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>This module add a button on sale order to import several products on
your current sale order. A wizard opens and allows the user to search
and select products.</p>
<p><img alt="Sale Product Multi Add" src="https://raw.githubusercontent.com/sale_product_multi_add/static/src/description/sale_product_multi_add.png" /></p>
<p>This module adds a button on a Sale Order to import several products on
your current sale order. To use this module create a Sale Order and
click the button to open a wizard where you can add multiple products
and set the quantities.</p>
<p><img alt="Sale Product Multi Add" src="https://raw.githubusercontent.com/sale_product_multi_add/static/description/sale_product_multi_add.png" /></p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
Expand Down Expand Up @@ -418,6 +419,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
</ul>
</li>
<li>Jacques-Etienne Baudoux (BCIM) &lt;<a class="reference external" href="mailto:je&#64;bcim.be">je&#64;bcim.be</a>&gt;</li>
<li>Anaïs López &lt;<a class="reference external" href="mailto:anais.lopez&#64;forgeflow.com">anais.lopez&#64;forgeflow.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
4 changes: 2 additions & 2 deletions sale_product_multi_add/tests/test_sale.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# © 2016 Cédric Pigeon, Acsone SA/NV (http://www.acsone.eu)
# © 2016-2024 Cédric Pigeon, Acsone SA/NV (http://www.acsone.eu)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import odoo.tests.common as common


class TestSale(common.TransactionCase):
def setUp(self):
super(TestSale, self).setUp()
super().setUp()

self.product_9 = self.env.ref("product.product_product_9")
self.product_11 = self.env.ref("product.product_product_11")
Expand Down
2 changes: 1 addition & 1 deletion sale_product_multi_add/views/sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
icon="fa-plus-circle"
Help="Select Products to Import"
type="action"
attrs="{'invisible':[('state','not in', ['draft', 'sent'])]}"
invisible="state not in ['draft', 'sent']"
/>
</field>
<field name="order_line" position="attributes">
Expand Down

0 comments on commit b2a8cb5

Please sign in to comment.