← Back to team overview

openerp-india team mailing list archive

[Bug 993283] [NEW] Sale : some code never reach or bad indentation

 

Public bug reported:

Module :sale.py
Class :sale_order
Def: test_state

At the end of test_state

 if mode == 'finished':
    return finished
elif mode == 'canceled':
    return canceled
    if notcanceled:       <------
        return False        <------
    return canceled    <------

This not a bug, but this code need to be deleted because never reach, or
maybe a bad Indentation, i'm not investigate more, just see it and
report it.

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

** Summary changed:

- Sale : some code never reach
+ Sale : some code never reach or bad indentation

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/993283

Title:
  Sale : some code never reach or bad indentation

Status in OpenERP Addons (modules):
  New

Bug description:
  Module :sale.py
  Class :sale_order
  Def: test_state

  At the end of test_state

   if mode == 'finished':
      return finished
  elif mode == 'canceled':
      return canceled
      if notcanceled:       <------
          return False        <------
      return canceled    <------

  This not a bug, but this code need to be deleted because never reach,
  or maybe a bad Indentation, i'm not investigate more, just see it and
  report it.

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


Follow ups

References