product variant name not populated in Purchase Order

Asked by Selvam

Hi,

I am using 5.0.15 stable version, Ubuntu 10.04.

Product variant name is not being populated in description field when adding a product to Purchase Order Line.

For eg:
          If the product name is ABC with code XY and variant is Color:Red.

         In Purchase Order Line description field, I get only "[XY] ABC" rather than "[XY] ABC - Color:Red".

I analyzed bit further, and in product/product.py, partner_ref functional field is the one which is being populated in description field of purchase order line. The appropriate function of that field does not seem to respect variants.

Though, I have fixed it, I would like to know whether it is an expected behavior or a bug.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) said :
#1

Hi
I am working on product variant
I made a lot of change and some can be interesting for you.
Now we have two module
product_variant_multi
product_variant_multi_advanced
With the second module :
Product name is automatically build from the product template name. So in
your case the product will be named ABC Red and so you don't need anymore to
"build" the product name in the field description as it already build.
Moreover sale description can be also automatically build for the product
template description (the fields between "[_" and "_]" willl be
automatically replaced by their value.
You can found the branch here :
https://code.launchpad.net/~akretion-team/openobject-addons/product_variant_multi_improve

I will merge it soon, I just waiting the feed back of my customer.

Hope it can help you

2010/12/23 DBR (OpenERP) <email address hidden>

> New question #138824 on OpenObject Addons:
> https://answers.launchpad.net/openobject-addons/+question/138824
>
> Hi,
>
> I am using 5.0.15 stable version, Ubuntu 10.04.
>
> Product variant name is not being populated in description field when
> adding a product to Purchase Order Line.
>
> For eg:
> If the product name is ABC with code XY and variant is Color:Red.
>
> In Purchase Order Line description field, I get only "[XY] ABC"
> rather than "[XY] ABC - Color:Red".
>
> I analyzed bit further, and in product/product.py, partner_ref functional
> field is the one which is being populated in description field of purchase
> order line. The appropriate function of that field does not seem to respect
> variants.
>
> Though, I have fixed it, I would like to know whether it is an expected
> behavior or a bug.
>
> --
> You received this question notification because you are a member of
> OpenERP Committers, which is an answer contact for OpenObject Addons.
>

--

BEAU Sébastien
www.akretion.com

Can you help with this problem?

Provide an answer of your own, or ask Selvam for more information if necessary.

To post a message you must log in.