跳至内容
菜单
此问题已终结
1 回复
3901 查看

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

形象
丢弃
编写者 最佳答案

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.

形象
丢弃