Hi, I try to filter sale orders by one of its customer empty field:
I tryied:
orders = self.env["sale.order"].filtered(lambda o: o.partner_id.customer_payment_mode_id.id == False)
orders = self.env["sale.order"].filtered(lambda o: o.partner_id.customer_payment_mode_id.id == None)
...but no effect.
Any idea how can I get it?
Thank you