跳至內容
選單
此問題已被標幟
4 回覆
4755 瀏覽次數

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
2278
0
10月 20
3750
2
6月 18
3519
1
5月 22
2454
5
10月 19
9519