İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3249 Görünümler

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'
Avatar
Vazgeç
En İyi Yanıt

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


Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 16
3672
0
Şub 16
3364
1
Mar 24
1556
5
Ağu 20
16574
0
Ağu 18
5762