Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

How can I get the payment_move_line_ids.date field in my account.invoice view?

I see the relation here:

    payment_move_line_ids = fields.Many2many('account.move.line', string='Payment Move Lines', compute='_compute_payments', store=True)

But how can I now Filter the "date" field in this link 'account.move.line' on my invoices?

Any Ideas?


Thank you so much


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

HI wizardz,

Try this below example,

<filter name="payment_move_line_ids" string="Payment Move Line Date" domain="[('payment_move_line_ids.date','>=',datetime.datetime.now().strftime('%Y-%m-%d'))]"/>

\
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 17
8313
0
thg 3 17
2438
10
thg 2 19
9766
0
thg 3 15
5113
1
thg 3 25
1328