← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 820799] Re: [stock.move] Correct good`s cost replaced by price of one entity

 

Hello,

I have faced the same problem in latest stable(addons 4747) and trunk it
is working fine So I am assign this to OPW team.

The problem is on line number 45-48 in purchase/stock.py just change
with this.

          if move.purchase_line_id and move.picking_id.purchase_id.pricelist_id:
                reference_amount, reference_currency_id = move.purchase_line_id.price_unit * qty, move.picking_id.purchase_id.pricelist_id.currency_id.id

Thanks.

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
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/820799

Title:
  [stock.move] Correct good`s cost replaced by price of one entity

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  In stock module I have found a technological mistake. When I move
  purchased goods to stock location with real-time valuation the journal
  entries is entered on Stock Journal. If a good's value evaluates as a
  medium price then the sum of each row evaluates correct (i.e. qty *
  price). Otherwise if a good's value evaluates as a standart price then
  the sum of each row evaluates as standart price (i.e. without
  multiplication of qty). The reason of this mistake is that the
  _get_reference_accounting_values_for_valuation method from
  server/addons/stock/stock.py have been inherited and changed in
  server/addons/purchase/stock.py. In inherited method correct good's
  value is replaced by price of one entity.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/820799/+subscriptions


References