This question has been flagged
1 Reply
3390 Views

Hi everybody,

When I create an invoice, my items don't appear in alaphabetical order but anyhow.

Someone knows how to get items in alphabetical order ?

Thanks in advance.

JMB

Avatar
Discard
Author Best Answer

Finally I have found the answer. You just have to add this code in the .py file or your inherit module :

class account_invoice_line(osv.osv):
    _inherit = 'account.invoice.line'
    _order = 'product_id asc'

    _columns = {
                }

account_invoice_line()

Hope it will be usefull.

Avatar
Discard