Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3177 Lượt xem

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'
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 16
3644
0
thg 2 16
3326
1
thg 3 24
1497
5
thg 8 20
16509
0
thg 8 18
5722