Skip to content

Commit

Permalink
[11.0][IMP] sale_product_set module
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaGForgeFlow authored and OCA-git-bot committed Jul 30, 2019
1 parent f1c061e commit 404903c
Show file tree
Hide file tree
Showing 13 changed files with 566 additions and 32 deletions.
81 changes: 52 additions & 29 deletions sale_product_set/README.rst
@@ -1,10 +1,30 @@
.. 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 set
================
Sale product set
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/11.0/sale_product_set
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_product_set
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/167/11.0
:alt: Try me on Runbot

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

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

Expand All @@ -17,6 +37,11 @@ removed as any other sale order lines.
This differs from packing products as you don't follow *product set*
are not linked to sale order lines once they are added.

**Table of contents**

.. contents::
:local:

Usage
=====

Expand All @@ -25,68 +50,66 @@ To use this module, you need to:
* Define a *product set* as sale manager:
- choose products
- for each products, define a quantity.
- for each products (if Discounts setting is active), define a discount or leave default value
- Sort *set* lines, this order will be the default when added into the
quotation

.. image:: /sale_product_set/static/description/product_set.png
.. image:: https://raw.githubusercontent.com/sale_product_set/static/description/product_set.png
:alt: Set a product set

* On quotation any salesman can click on "Add set" button
which will open wizard where users can chose a *product set* and quantity
to add at the end of sale order lines. Order defined in *product set* is
preserved in sale order.

.. image:: /sale_product_set/static/description/add_set.png
.. image:: https://raw.githubusercontent.com/sale_product_set/static/description/add_set.png
:alt: Add set to sale order

* Then you can remove or update added lines as any other sale order lines.

.. image:: /sale_product_set/static/description/sale_order.png
.. image:: https://raw.githubusercontent.com/sale_product_set/static/description/sale_order.png
:alt: Sale order


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/167/11.0



Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/sale-workflow/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.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_product_set%0Aversion:%2011.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
=======

Images
------

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Authors
~~~~~~~

* Anybox

Contributors
------------
~~~~~~~~~~~~

* Clovis Nzouendjou <clovis@anybox.fr>
* Pierre Verkest <pverkest@anybox.fr>
* Denis Leemann <denis.leemann@camptocamp.com>
* Simone Orsi <simone.orsi@camptocamp.com>
* Adria Gil Sorribes <adria.gil@eficent.com>

Maintainers
~~~~~~~~~~~

Maintainer
----------
This module is maintained by the OCA.

.. 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 module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/11.0/sale_product_set>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions sale_product_set/demo/product_set_line.xml
Expand Up @@ -4,6 +4,7 @@
<field name="product_set_id" ref="product_set_i5_computer"/>
<field name="product_id" ref="product.product_product_5"/>
<field name="quantity">1</field>
<field name="discount">25</field>
<field name="sequence">30</field>
</record>
<record id="product_set_line_computer_3" model="product.set.line">
Expand All @@ -23,6 +24,7 @@
<field name="product_set_id" ref="product_set_services"/>
<field name="product_id" ref="product.product_product_2"/>
<field name="quantity">1</field>
<field name="discount">50</field>
</record>
<record id="product_set_line_services_2" model="product.set.line">
<field name="product_set_id" ref="product_set_services"/>
Expand Down
5 changes: 5 additions & 0 deletions sale_product_set/models/product_set_line.py
Expand Up @@ -33,3 +33,8 @@ class ProductSetLine(models.Model):
required=True,
default=0,
)
discount = fields.Float(
string='Discount (%)',
digits=dp.get_precision('Discount'),
default=0.0
)
5 changes: 5 additions & 0 deletions sale_product_set/readme/CONTRIBUTORS.rst
@@ -0,0 +1,5 @@
* Clovis Nzouendjou <clovis@anybox.fr>
* Pierre Verkest <pverkest@anybox.fr>
* Denis Leemann <denis.leemann@camptocamp.com>
* Simone Orsi <simone.orsi@camptocamp.com>
* Adria Gil Sorribes <adria.gil@eficent.com>
11 changes: 11 additions & 0 deletions sale_product_set/readme/DESCRIPTION.rst
@@ -0,0 +1,11 @@
A **product set** is a list of products which end customers aren't aware, this
list is defined by sales manager.

This module aims to help salesman to quickly create several sale order lines
at once in a quotation.

After a *product set* is added to the sale order, each line can be updated or
removed as any other sale order lines.

This differs from packing products as you don't follow *product set*
are not linked to sale order lines once they are added.
24 changes: 24 additions & 0 deletions sale_product_set/readme/USAGE.rst
@@ -0,0 +1,24 @@
To use this module, you need to:

* Define a *product set* as sale manager:
- choose products
- for each products, define a quantity.
- for each products (if Discounts setting is active), define a discount or leave default value
- Sort *set* lines, this order will be the default when added into the
quotation

.. image:: /sale_product_set/static/description/product_set.png
:alt: Set a product set

* On quotation any salesman can click on "Add set" button
which will open wizard where users can chose a *product set* and quantity
to add at the end of sale order lines. Order defined in *product set* is
preserved in sale order.

.. image:: /sale_product_set/static/description/add_set.png
:alt: Add set to sale order

* Then you can remove or update added lines as any other sale order lines.

.. image:: /sale_product_set/static/description/sale_order.png
:alt: Sale order
Binary file modified sale_product_set/static/description/add_set.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 404903c

Please sign in to comment.