Přejít na obsah
Menu
You need to be registered to interact with the community.
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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 17
8279
0
bře 17
2427
10
úno 19
9748
0
bře 15
5109
1
bře 25
1295