I tried to make something simple so I can understand how to do it.
@api.one
def convert_opportunity_to_customer(self):
osv.except_osv('Warning!', '!!!!!!!!!!!!!!!!!!!!!')
_logger.error(self, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
raise Exception(self)
# return True
What have you tried? What is the error? Post some code and more information please.
I tried to make something simple so I can understand how to do it. @api.one def convert_opportunity_to_customer(self): osv.except_osv('Warning!', '!!!!!!!!!!!!!!!!!!!!!') _logger.error(self, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') raise Exception(self) # return True
I do not get error it does not compute the method