Hello, I am developing a module in Odoo 8. I have inherited product.pricelist class which definition is
class product_pricelist(osv.osv):
In my definition I have
class product_pricelist(models.Model):
_inherit = 'product.pricelist'
When in my code I try to execute the line
raise osv.except_osv(_('Warning!'), _("At least one pricelist has no active version !\nPlease create or activate one."))
I have an error because global name osv is not defined. What is the best way to throw an exception and display an error in Odoo 8? Thanks!