← Back to team overview

openerp-india team mailing list archive

[Bug 1249594] [NEW] sale warning for product

 

Public bug reported:

There is a bug in sale_stock module on line 604:

        #check if product is available, and if not: raise an error
        uom2 = False
        if uom:
            uom2 = product_uom_obj.browse(cr, uid, uom)
            if product_obj.uom_id.category_id.id != uom2.category_id.id:
                uom = False
        if not uom2:
            uom2 = product_obj.uom_id

uom2 = product_uom_obj.browse(cr, uid, uom) should have context as 4th
parameter because of language

In example:
When you set langugage to Croatian and try to sell something you don't have in stock then the first uom name in the warning message will always be in English instead of Croatian!

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

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

Title:
  sale warning for product

Status in OpenERP Addons (modules):
  New

Bug description:
  There is a bug in sale_stock module on line 604:

          #check if product is available, and if not: raise an error
          uom2 = False
          if uom:
              uom2 = product_uom_obj.browse(cr, uid, uom)
              if product_obj.uom_id.category_id.id != uom2.category_id.id:
                  uom = False
          if not uom2:
              uom2 = product_obj.uom_id

  uom2 = product_uom_obj.browse(cr, uid, uom) should have context as 4th
  parameter because of language

  In example:
  When you set langugage to Croatian and try to sell something you don't have in stock then the first uom name in the warning message will always be in English instead of Croatian!

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


Follow ups

References