Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
4750 Zobrazení

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

Avatar
Zrušit

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

Nejlepší odpověď

Hi Simon,

Have you done the following imports:

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

Avatar
Zrušit
Nejlepší odpověď

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 22
2276
0
říj 20
3748
2
čvn 18
3513
1
kvě 22
2447
5
říj 19
9517