← Back to team overview

openerp-india team mailing list archive

[Bug 1038836] Re: point_of_sale module wrong inheritance

 

Hello Jacara,

We have already improved the point_of_sale module on trunk and "def
_equal_balance" this method are not existing any more in trunk, So this
issue is only affecting to 6.1.

But this is not a blocking point for 6.1 as pwer our bug management
policy we can consider only trunk bug as well as blocking point of
stable.

So we can not consider this issue for stable,for these type of If you
have a support and maintenance contract with us then you can contact out
OPW team at support@xxxxxxxxxxx they will definitely help you.

Thank you!

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

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

Title:
  point_of_sale module wrong inheritance

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  
  On point_of_sale/account_bank_statement.py line 46:

  
  def _equal_balance(self, cr, uid, cash_id, context=None):
          statement = self.browse(cr, uid, cash_id, context=context)
          if not statement.journal_id.check_dtls:
              return True
          if statement.journal_id.check_dtls and (statement.balance_end != statement.balance_end_cash):
              return False
          else:
              return True

  This is wrong. My suggest:

      def _equal_balance(self, cr, uid, cash_id, context=None):
          statement = self.browse(cr, uid, cash_id, context=context)
          if not statement.journal_id.check_dtls:
              return True
          return super(account_cash_statement, self)._equal_balance(cr, uid, cash_id, context=context)

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


References