Warning apear in selecting product from sales order line

Bug #543976 reported by Sohan Solanki(sos-Axelor)
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
Stephane Wirtel (OpenERP)

Bug Description

With stable version of addons when i select product from sales order line, it gives message like.
"Conversion from Product UoM Hour to Default UoM PCE is not possible as they both belong to different Category!"
This warning apear only when there are products in database having uom from different categories.(like PC1 has PCE and DEV has day) and there is already uom selected in this sales order line.Warrining apear at the time of searching means before we select any product.

Related branches

description: updated
Changed in openobject-addons:
assignee: nobody → gpa(Open ERP) (gpa-openerp)
importance: Undecided → Medium
milestone: none → 5.0.8
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Guys,

Would you please try and apply this patch?

Thanks.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Jay,

I checked the patch,

1. You add the 'uom' key in the dict but there is already this key with a different value
2. You will pass the same uom.id for the source uom and dest uom.

Now, I have a question, how is it possible to convert some hours in PCE ?

Changed in openobject-addons:
milestone: 5.0.8 → 5.0.9
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi,

The Problem is,the loop checks the value of uom with the instant product_id and it compares its uom with hours(the selected one).

If you generate the situation,you will come to know the issue.

Let me know if you find any trouble.

Thanks.

Revision history for this message
Sohan Solanki(sos-Axelor) (sos-axelor) wrote :

Hi,
Patch is working fine and problem get solved
Thanks

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
milestone: 5.0.9 → 5.0.10
Changed in openobject-addons:
assignee: gpa(Open ERP) (gpa-openerp) → Stephane (Open ERP) (stephane-openerp)
Changed in openobject-addons:
milestone: 5.0.10 → 5.0.11
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Guys,

We may apply this patch currently.

We need more elegant solution for this.

Thanks.

Revision history for this message
Michel Loos (loos-michel-external) wrote : RE: [Bug 543976] Re: Warning apear in selecting product from sales order line

I saw this patch.
1) It did not resolve my problem
2) It has a harmful taste since it seems to talk about the Default UOM and Product UoM which effectively should be the same.
  It is the product UoS that can be different

It feels to me that this should be a fully different subroutine (UoM -> UoS) used only by the sales module
compared to Purchase UoM -> Default UoM (which by the way works fine) used by purchase/stock modules.

Michel Loos
Integration Engineer LATAM South
Phones: +55 11 5105-7661 / +55 11 3638-7661
Mobile: +55 11 9885-1477
Fax: +55 11 5105-7610
Av. das Nacoes Unidas, 12495 - 8º andar
CEP 04571-011 - Brooklin - São Paulo
<email address hidden>
www.gemalto.com

________________________________________
From: <email address hidden> [<email address hidden>] On Behalf Of Jay (Open ERP) [<email address hidden>]
Sent: Monday, May 24, 2010 6:31
To: MICHEL-EXTERNAL loos
Subject: [Bug 543976] Re: Warning apear in selecting product from sales order line

Hello Guys,

We may apply this patch currently.

We need more elegant solution for this.

Thanks.

** Patch added: "UoM_Conversion.patch"
   http://launchpadlibrarian.net/49008548/UoM_Conversion.patch

--
Warning apear in selecting product from sales order line
https://bugs.launchpad.net/bugs/543976
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Status in OpenObject Addons Modules: In Progress

Bug description:
With stable version of addons when i select product from sales order line, it gives message like.
"Conversion from Product UoM Hour to Default UoM PCE is not possible as they both belong to different Category!"
This warning apear only when there are products in database having uom from different categories.(like PC1 has PCE and DEV has day) and there is already uom selected in this sales order line.Warrining apear at the time of searching means before we select any product.

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/openobject-addons/+bug/543976/+subscribe

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Michel Loos,

This patch prevents the warning to be raised everytime and skips the conversion. It must work.

It is applied on the method which is responsible for conversion.

Does it still throw a warning to you? Kindly make sure you have applied it properly.

Thanks.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hello,

let me comment that this is an important regression on a basic functional scope, I personally don't really understand how this can be considered only "medium" priority, IMHO such regressions should be flagged as "high" at least. I mean there is no point in trying to add features in the "stable" version if the cost is such regressions on the basic scope.

In particular, this regression has been introduced when trying to fix that bug https://bugs.launchpad.net/openobject-addons/+bug/504353
The mentioned patch here is the equivalent of roll-backing the fix for bug #504353, I'm in favor of that as it's better not fixing a bug rather than creating new code that fixes a bug but breaks such a basic feature (at the end of the story you have a bug that is more frequent, you frighten the users who don't expect such a regression on the "stable" version and you have more obscure code to maintain).

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2745 <email address hidden>.
The patch for https://bugs.launchpad.net/openobject-addons/+bug/504353 has been reverted back.
Thanks.

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.