Please help me resolve this problem ..
I use to make invoice_id field in my custom module , it refer to customer invoice that has been paid.
'invoice_id': fields.many2one('account.invoice',string='Invoice',domain=[('state','=','paid'),('type','=','out_invoice')],required=True),
but whenever i create or edit a new item , it always refer to supplier invoice.
what should i do?
did you meant about creating invoice from your Many2one field in custom module?
yes it is
can you please explain your need , do you want to create invoice from there or just want to see and select customer invoice ?