Odoo Help


How to override private method: Account.invoice.line ? [Closed]

on 7/19/13, 5:06 AM 2,540 views

The Question has been closed

Sudhir Arya (ERP Harbor Consulting Services)
on 11/09/2013 02:09:02


_amount_line(self, cr, uid, ids, prop, unknow_none, unknow_dict):

I wanted to override, I have added new fields in account.invoice.line.

Applied below code.

class account_invoice_line(osv.osv):
    _inherit = 'account.invoice.line'
    def _amount_line(self, cr, uid, ids, prop, unknow_none, unknow_dict):
          ... .. ...
          print "This not executing....."

Someone correct me where I am doing wrong ?

Or Its framework bug ?


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 7/20/13, 2:29 PM

Everything is looking fine. I think you may try one thing.

Just copy & past those function fields which uses _amount_line method. You have to add those fields in your module.

Just try it.

I hope it will solve your problem.

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.


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

0 follower(s)


Asked: 7/19/13, 5:06 AM
Seen: 2540 times
Last updated: 2/14/18, 5:01 AM