Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
4762 Vizualizări

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

Imagine profil
Abandonează

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

Cel mai bun răspuns

Hi Simon,

Have you done the following imports:

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

Imagine profil
Abandonează
Cel mai bun răspuns

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 22
2278
0
oct. 20
3754
2
iun. 18
3525
1
mai 22
2457
5
oct. 19
9522