Why I can't use api extending res.partner?
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
|
4787 | |||
|
0
10월 20
|
5937 | |||
|
2
6월 18
|
5195 | |||
|
1
5월 22
|
4736 | |||
|
5
10월 19
|
11850 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
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