Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
4784 Prikazi

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

Avatar
Opusti

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

Avtor

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

Avtor

I do not get error it does not compute the method

Best Answer

Hi Simon,

Have you done the following imports:

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

Avatar
Opusti
Best Answer

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 22
2314
0
okt. 20
3772
2
jun. 18
3578
1
maj 22
2492
5
okt. 19
9543