Odoo Help

0

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

By
Simon
on 8/17/15, 9:59 AM 946 views

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

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

Yenthe
on 8/17/15, 10:03 AM

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

Simon
on 8/18/15, 2:20 AM

I do not get error it does not compute the method

Simon
on 8/19/15, 3:34 AM
0
Akhil P Sivan
On 8/18/15, 3:05 AM

Hi Simon,

Have you done the following imports:

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

0

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/17/15, 9:59 AM
Seen: 946 times
Last updated: 8/19/15, 3:34 AM