TypeError: _amount_all() takes at least 6 arguments (1 given)

Bug #1547552 reported by jorge on 2016-02-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openerp Venezuela
Undecided
Unassigned

Bug Description

 def _amount_all(self, cr, uid, ids, fieldname, args, context=None):
        """ Return amount total each line
        """
        for rec in self:
            if rec.invoice_id.type not in 'in_refund':
                rec.amount_tax_ret = sum(l.amount_ret for l in rec.tax_line)
                rec.base_ret = sum(l.base for l in rec.tax_line)
            else:
                rec.amount_tax_ret = -sum(l.amount_ret for l in rec.tax_line)
                rec.base_ret = -sum(l.base for l in rec.tax_line)

con la version 8 de odoo

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers