← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 871675] [NEW] Stock Internal Moves

 

Public bug reported:

I am asking from is journal entries while doing internal move between
internal stock locations, where I see openerp is not satisfying and it
is missing and I can assure that from this part of code where entries
got generated :

""" # Outgoing moves (or cross-company output part)
            if move.location_id.company_id \
                and (move.location_id.usage == 'internal' and move.location_dest_id.usage != 'internal'\
                     or move.location_id.company_id != move.location_dest_id.company_id):
                journal_id, acc_src, acc_dest, acc_variation = self._get_accounting_data_for_valuation(cr, uid, move, src_company_ctx)
                reference_amount, reference_currency_id = self._get_reference_accounting_values_for_valuation(cr, uid, move, src_company_ctx)
                account_moves += [(journal_id, self._create_account_move_line(cr, uid, move, acc_variation, acc_dest, reference_amount, reference_currency_id, context))]

            # Incoming moves (or cross-company input part)
            if move.location_dest_id.company_id \
                and (move.location_id.usage != 'internal' and move.location_dest_id.usage == 'internal'\
                     or move.location_id.company_id != move.location_dest_id.company_id):
                journal_id, acc_src, acc_dest, acc_variation = self._get_accounting_data_for_valuation(cr, uid, move, dest_company_ctx)
                reference_amount, reference_currency_id = self._get_reference_accounting_values_for_valuation(cr, uid, move, src_company_ctx)
                account_moves += [(journal_id, self._create_account_move_line(cr, uid, move, acc_src, acc_variation, reference_amount, reference_currency_id, context))]"""

Having said that, I see openerp just generate entries from incoming and
outgoing moves and don't for internal moves where

move.location_id.usage == 'internal' and move.location_dest_id.usage ==
'internal'

For example when doing internal move from stock_a  to stock_b (both are
internal locations), it should generate a journal entry stock_a credit
and stock_b debit with the amount of product moved

** Affects: openobject-addons
     Importance: Undecided
         Status: New

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

Title:
  Stock Internal Moves

Status in OpenERP Addons (modules):
  New

Bug description:
  I am asking from is journal entries while doing internal move between
  internal stock locations, where I see openerp is not satisfying and it
  is missing and I can assure that from this part of code where entries
  got generated :

  """ # Outgoing moves (or cross-company output part)
              if move.location_id.company_id \
                  and (move.location_id.usage == 'internal' and move.location_dest_id.usage != 'internal'\
                       or move.location_id.company_id != move.location_dest_id.company_id):
                  journal_id, acc_src, acc_dest, acc_variation = self._get_accounting_data_for_valuation(cr, uid, move, src_company_ctx)
                  reference_amount, reference_currency_id = self._get_reference_accounting_values_for_valuation(cr, uid, move, src_company_ctx)
                  account_moves += [(journal_id, self._create_account_move_line(cr, uid, move, acc_variation, acc_dest, reference_amount, reference_currency_id, context))]

              # Incoming moves (or cross-company input part)
              if move.location_dest_id.company_id \
                  and (move.location_id.usage != 'internal' and move.location_dest_id.usage == 'internal'\
                       or move.location_id.company_id != move.location_dest_id.company_id):
                  journal_id, acc_src, acc_dest, acc_variation = self._get_accounting_data_for_valuation(cr, uid, move, dest_company_ctx)
                  reference_amount, reference_currency_id = self._get_reference_accounting_values_for_valuation(cr, uid, move, src_company_ctx)
                  account_moves += [(journal_id, self._create_account_move_line(cr, uid, move, acc_src, acc_variation, reference_amount, reference_currency_id, context))]"""

  Having said that, I see openerp just generate entries from incoming
  and outgoing moves and don't for internal moves where

  move.location_id.usage == 'internal' and move.location_dest_id.usage
  == 'internal'

  For example when doing internal move from stock_a  to stock_b (both
  are internal locations), it should generate a journal entry stock_a
  credit and stock_b debit with the amount of product moved

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


Follow ups

References