Odoo Help


This community 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.


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

on 8/17/15, 9:59 AM 566 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.

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

on 8/18/15, 2:20 AM

I do not get error it does not compute the method

on 8/19/15, 3:34 AM

Akhil P Sivan

--Akhil P Sivan--
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

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__)


Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 8/18/15, 2:50 AM


You can definitely extend the model and its methods!

What errors did you receive?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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