← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 883161] [NEW] account_move_line _update_check wrong condition

 

Public bug reported:

since 6.0 the if statmente includes
....and (not line.journal_id.entry_posted)
 
    def _update_check(self, cr, uid, ids, context=None):
        done = {}
        for line in self.browse(cr, uid, ids, context=context):
            err_msg = _('Move name (id): ')  + line.move_id.name +' ('+ str(line.move_id.id) +')'
            if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted):

IMHO update_posted should be checked.

entry_posted is used to control if moves will be directly posted.

may be I miss something

** 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/883161

Title:
  account_move_line _update_check wrong condition

Status in OpenERP Addons (modules):
  New

Bug description:
  since 6.0 the if statmente includes
  ....and (not line.journal_id.entry_posted)
   
      def _update_check(self, cr, uid, ids, context=None):
          done = {}
          for line in self.browse(cr, uid, ids, context=context):
              err_msg = _('Move name (id): ')  + line.move_id.name +' ('+ str(line.move_id.id) +')'
              if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted):

  IMHO update_posted should be checked.

  entry_posted is used to control if moves will be directly posted.

  may be I miss something

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


Follow ups

References