Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

\
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
sept. 17
8212
0
mar. 17
2385
10
feb. 19
9665
0
mar. 15
4982
1
mar. 25
1162