Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4 Respostas
4768 Visualizações

Why I can't use api extending res.partner?

Avatar
Cancelar

What have you tried? What is the error? Post some code and more information please.

Autor

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

Autor

I do not get error it does not compute the method

Melhor resposta

Hi Simon,

Have you done the following imports:

from openerp.osv import osv
import logging
_logger = logging.getLogger(__name__)

Avatar
Cancelar
Melhor resposta

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mai. 22
2288
0
out. 20
3760
2
jun. 18
3535
1
mai. 22
2468
5
out. 19
9527