Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
4764 Представления

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

Аватар
Отменить

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

Автор

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

Автор

I do not get error it does not compute the method

Лучший ответ

Hi Simon,

Have you done the following imports:

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

Аватар
Отменить
Лучший ответ

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мая 22
2278
0
окт. 20
3754
2
июн. 18
3525
1
мая 22
2457
5
окт. 19
9522