Skip to Content
Menu
This question has been flagged
1 Reply
2707 Views

Hi

I successfully retrieve the customer_Invoice and Supplier_Invoice from the account.Invoice table in Odoo

but how do i separately retrieve both invoice ?

i know the 'type' field are available for that but i just want to know it's value of that fields

Thanks

Avatar
Discard
Best Answer

Hi,

invoice types are 4 values :

+ for customers :

out_invoice for invoices, out_refund for credit notes

+ for suppliers :

in_invoice for invoices, in_refund for credit notes

see field type = fields.Selection,(...) here line 234 :

https://github.com/odoo/odoo/blob/11.0/addons/account/models/account_invoice.py

Regards

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 15
2392
2
Nov 24
242
1
Oct 24
179
2
Apr 24
390
2
Sep 24
1592