how can i know that the customer invoice is created by validating sales order or manually create by input manually ? i have to filter customer invoice only from sales order , not manually created . is there anyway to know the different ?
thanks
EDIT
i use this code but it didn't work ..
my python code :
'invoice_id': fields.many2one('account.invoice',string='Invoice',required=True, domain=[('origin', '=', True)]),
my xml code:
<field name="invoice_id" context="{'form_view_ref':'account.invoice_form'}" domain="[('state','=','paid'),('type','=','out_invoice'),('branch_id','=',branch_id),('division','=',division)]" on_change="_onchange_invoice(invoice_id)"/>