Skip to Content
Menú
This question has been flagged

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


Avatar
Descartar
Best Answer

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

\
Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de set. 17
8323
0
de març 17
2444
10
de febr. 19
9781
0
de març 15
5120
1
de març 25
1349