Skip to Content
मेन्यू
This question has been flagged
4 Replies
4749 Views

Why I can't use api extending res.partner?

Avatar
Discard

What have you tried? What is the error? Post some code and more information please.

Author

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

Author

I do not get error it does not compute the method

Best Answer

Hi Simon,

Have you done the following imports:

from openerp.osv import osv
import logging
_logger = logging.getLogger(__name__)

Avatar
Discard
Best Answer

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Discard
Related Posts Replies Views Activity
1
मई 22
2274
0
अक्तू॰ 20
3744
2
जून 18
3513
1
मई 22
2447
5
अक्तू॰ 19
9516