Odoo Help

Welcome!

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.

0

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

By
Zahin
on 7/19/13, 5:06 AM 1,656 views

The Question has been closed

by
Sudhir Arya (SA)
on 11/09/2013 02:09:02

Hello,

_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 ?

1

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/19/13, 5:06 AM
Seen: 1656 times
Last updated: 3/16/15, 8:10 AM