Odoo Help

0

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

By
Simon
on 8/17/15, 9:59 AM 841 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

--Akhil P Sivan--
4045
| 5 4 7
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__)

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4575
| 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

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: 841 times
Last updated: 8/19/15, 3:34 AM