Chen Log

陳洛格

Archive for March 2015

OpenERP 7 order number 排序問題

leave a comment »

Sales orders over 999 not visible

訂單數字無法正確排序,

處理辦法:

先確認是不是有加了0,
例如999變成千之後,
變成0999:

Verify in the configuration under Settings –> Technical —> sequences & Identifiers —> Sequences the value Number Padding of the Sale Journal Sequence (SAJ) (increase this value).

另外修改 .py 檔,
路徑 (…/openerp/addons/sales/sale.py)

It seems to me that you are using an old version of v7.0 , if it’s true, there is a fix for this issue.
Edit your sale.py file (…/openerp/addons/sales/sale.py), around line 248, change the line _order = “name desc” by _order = ‘date_order desc, id desc’.

修改完成後請重開系統(或電腦)。

參考:
https://www.odoo.com/forum/help-1/question/sales-orders-over-999-not-visible-46337
Advertisements

Written by chenagw

2015/03/17 at 16:19

Posted in Uncategorized

Tagged with , , , ,