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:
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?
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
May 22
|
2277 | ||
|
0
Eki 20
|
3748 | ||
|
2
Haz 18
|
3513 | ||
extending base.view_partner_form
Çözüldü
|
|
1
May 22
|
2448 | |
|
5
Eki 19
|
9517 |
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