コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
4799 ビュー

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?

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 22
2349
0
10月 20
3819
2
6月 18
3589
1
5月 22
2554
5
10月 19
9567