Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3903 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć