跳至內容
選單
此問題已被標幟

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


頭像
捨棄
最佳答案

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'))]"/>

\
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 17
8285
0
3月 17
2430
10
2月 19
9749
0
3月 15
5109
1
3月 25
1299