← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 558364] Re: [5.0 stock] Error with 'multi' instances in stock.location

 

Hello Omar,

If we define different string for remaining two fields, It will call the same function again for those two fields which is not good.
So I think currently It will calculate all four field together with single call.
I think this not a bug so I am closing this issue.

Current me If I am wrong.

Thanks.

** Changed in: openobject-addons
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/558364

Title:
  [5.0 stock] Error with 'multi' instances in stock.location

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  Hi,

Fields stock_real, stock_virtual and stock_real_value, stock_virtual_value in stock_location columns shared  the multi attribute: multi="stock", but the first pair want to call _product_qty_available() function and second pair want to call _product_value() function. The behaviour when you share the multi instance is that all multi fields call to the last function defined with the instance of multi then the four fields call to _product_value() function.

I include a patch that changes the multi instance of stock_real_value and stock_virtual_value for multi="value". It works well.