[Erp5-dev] getQuantityPrecision is not always defined on object
    Jerome Perrin 
    jerome at nexedi.com
       
    Fri Jul 20 09:45:55 CEST 2007
    
    
  
Łukasz Nowak a écrit :
> Hello,
> 
> While access account_module on my site I've got AttributeError:
> getQuantityPrecision:
> 
> Module Products.ERP5Type.Base, line 2678, in
> cached_getQuantityPrecisionFromResource
> 2676 |        resource_value = self.portal_categories.resolveCategory(resource)
> 2677 |        if resource_value is not None:
> 2678>|          return resource_value.getQuantityPrecision()
> 2679 |      return 0
> 2680 |
> 
Hello,
Can you still check what is resource here, and what is the portal_type 
of resource_value ?
Jérome
    
    
More information about the Erp5-dev
mailing list