Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4485 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
set. 17
8319
0
mar. 17
2442
10
fev. 19
9771
0
mar. 15
5116
1
mar. 25
1340