I am not sure how to track partner_id in accounting. My code:
from openerp import api, fields, models, _ class TwojStary(models.Model): _inherit = 'res.partner' bukcirra = fields.Monetary(string='Amount Due', currency_field='company_currency_id', related='account.invoice.partner_id.residual_company_signed', store=True, help="Remaining amount due in the currency of the company.")
related='account.invoice.partner_id.residual_company_signed'