Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3920 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer