Why I can't use api extending res.partner?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
maj 22
|
3405 | |||
|
0
paź 20
|
4769 | |||
|
2
cze 18
|
4262 | |||
|
extending base.view_partner_form
Rozwiązane
|
1
maj 22
|
3481 | ||
|
5
paź 19
|
10525 |
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