← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hi vra,

If you define different string for these fields, these fields will call
to their function (_product_value) and other two fields will call to
their function (_product_qty_available). These two function are
different. Now all fields call to _product_value() function, check it.

-- 
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.