← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 797477] Re: Accounting entries from goods receipt now broken

 

Within stock / wizard / stock_invoice_onshipping.py in function
create_invoice we call stock.picking action_invoice_create with the
following arguments.

        res = picking_pool.action_invoice_create(cr, uid, active_ids,
              journal_id = onshipdata_obj[0]['journal_id'],
              group = onshipdata_obj[0]['group'],
              type = None,
              context=context)
        return res

account_anglo_saxon relies on a value for type.  The fact we don't send
it is crazy as we specifically get it and pass to context just 2 lines
prior.  Simply changing this call to

        res = picking_pool.action_invoice_create(cr, uid, active_ids,
              journal_id = onshipdata_obj[0]['journal_id'],
              group = onshipdata_obj[0]['group'],
              type = inv_type,
              context=context)
        return res

Allows anglo_saxon to perform processing as expected.  While this fixes
this particular bug, in testing it did highlight that there are indeed
some more issues that are caused related to price difference accounts.
This will need seperate reporting.

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

Title:
  Accounting entries from goods receipt now broken

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  Downloaded latest 6.02 release (2011-06-15) to test if issue with
  price variance accounting fixed. Not fixed and now more issues
  introduced(Note: Anglo-Saxon module installed):

  1. When doing a goods receipt, GL journal created (from product category) is:
      DR Stock Variation Account
      CR Stock Input Account
  This is correct

  2. When the supplier invoice is processed, it should do:
      DR  Stock Input Account
      CR   AP Control Account (from supplier or from journal)

  what it is doing for step 2 is
      DR  Expense Account (from product category - this should be for sales transactions only)
      CR  AP Control Account

  3. When the supplier invoice <> the receipted value there is a price
  difference line which should be created - this is now not happening.

  4. In V6.0.2 (2011-06-01 version) where there was a price difference
  the amount being calculated was incorrect - should relate only to the
  invoice being processed, but was picking up previous receipts (at a
  different receipted value) and creating an additional entry for those
  as well.

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


References