Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3148 Vizualizări

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.")
This is wrong I guess:
related='account.invoice.partner_id.residual_company_signed'
Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Seeing the help you have given for the field seems that you are looking to show the amount which has to be received from the customer.


By default itself, these fields are there in the Partner form.



To view this fields you have to activate the developer mode.


Thanks


Imagine profil
Abandonează
Autor

I need residual_company_signed field as it holds the amount in the partner currency

Related Posts Răspunsuri Vizualizări Activitate
0
dec. 16
3621
0
feb. 16
3289
1
mar. 24
1448
5
aug. 20
16470
0
aug. 18
5653