Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3894 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează