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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký