Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
4757 Visualizzazioni

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

Avatar
Abbandona

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

Autore

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

Autore

I do not get error it does not compute the method

Risposta migliore

Hi Simon,

Have you done the following imports:

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

Avatar
Abbandona
Risposta migliore

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 22
2278
0
ott 20
3751
2
giu 18
3519
1
mag 22
2454
5
ott 19
9521