Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
4772 Vues

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

Avatar
Ignorer

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

Auteur

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

Auteur

I do not get error it does not compute the method

Meilleure réponse

Hi Simon,

Have you done the following imports:

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

Avatar
Ignorer
Meilleure réponse

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mai 22
2290
0
oct. 20
3762
2
juin 18
3536
1
mai 22
2470
5
oct. 19
9529