Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Is there a module to chain product addition in sale orders?

By
Mathieu Stumpf
on 4/10/14, 1:15 PM 1,128 views

In v7 and later, is there a module to chain product addition in sale orders. That is, if you add a given product, the software automaticaly add others, or at least inform the user that it probably add some other products and offer a button to do so.

1

Ray Carnes

--Ray Carnes--
15677
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 4/10/14, 4:10 PM

Have you seen https://www.openerp.com/apps/7.0/nan_product_pack/ ?

Allows configuring products as a collection of other products. If such a product is added in a sale order, all the products of the pack will be added automatically (when storing the order) as children of the pack product.

The module has been made compatible with nan_external_prices and containts code to specifically handle when the module is available but they're still independent and there are no dependencies between them.

It does the job out of the box. In sale order, you just have to select the product pack then click update. Not having to click update button would be an design improvement to my mind, but the same can be said for the total amount which isn't automaticaly updated in the default sale order.

Mathieu Stumpf
on 4/11/14, 11:15 AM
2

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 4/10/14, 7:38 PM

You could try this module product_bundle

Description from __openerp__.py:

This allow you to create bundle product, which is a product containing other products.

Example: "Drinks Set"

1 Apple Juice
1 Orange Juice
1 Grape Juice

On the Sale Order will appear "Drinks Set", and on the Packing list will appear the detail of the Bundle. You can replace one of the item in the Bundle in the Delivery Order, eg: replace 1 Orange Juice by 1 Mandarin Orange Juice.

When defining your Bundle product, you can specify the revenue repartition within the bundle items. This addon doesn't use the BoM, so no MO generated.

In test I conducted, while I was able to enable bundle as supply method and fill the new page in the product form I didn't notice any specific change in the sale oder form.

Mathieu Stumpf
on 4/11/14, 7:46 AM

The change as stated in the module description is in the Packing List (and possibly in the delivery Order. but i didn't test it)

Med Said BARA
on 4/11/14, 10:52 AM

Looking at the code, a sale_view.xml is present, but it's not even loaded by the module (using revision 36). Trying to load it will fail as the xml is relying on fields which are not present in the python sale order model. It looks like this functions where droped while making changes for v7 compatiibility

Mathieu Stumpf
on 4/11/14, 11:06 AM

You are right, the sale_view.xml is not loaded ( There must be a reason, or is it just an oversight?). Try to add it to update_xml to see if it works, if not just comment it.

Med Said BARA
on 4/11/14, 2:45 PM

I already tried, but the addition will fail as the sale_view.xml relies on a 'so_line_item_set_ids' field which is not declared in sale.py.

Mathieu Stumpf
on 4/14/14, 4:53 AM

It seems like an unfinished upgrade to V7.0. Could you take a look at https://www.openerp.com/apps/6.0/sale_bundle_product/ , it's for V6.0 and not usable in V7.0 cause there is a patch, but try to compare the files !!! especially sale.py and sale_view.xml, in sale.py you will find that 'so_line_item_set_ids' is defined. Both modules seem based on the same work.

Med Said BARA
on 4/14/14, 9:57 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/10/14, 1:15 PM
Seen: 1128 times
Last updated: 3/16/15, 8:10 AM