Skip to content

Instantly share code, notes, and snippets.

2014-10-16 02:30:54,230 13186 INFO medeq openerp.addons.fetchmail.fetchmail: start checking for new emails on imap server wewe
2014-10-16 02:31:02,036 13186 INFO medeq openerp.addons.mail.mail_thread: Routing mail from wewe <imwewe@gmail.com> to wewe@medeq.net with Message-Id <CAAyNhWvkXz+4iFjJiu4Gp00Artysi4LJ8NrQ3W6oEyRbOJXT2A@mail.gmail.com>: direct alias match: (u'res.users', 5, {}, 1, mail.alias(5,))
2014-10-16 02:31:02,116 13186 ERROR medeq openerp.addons.fetchmail.fetchmail: Failed to process mail from imap server wewe.
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/addons/fetchmail/fetchmail.py", line 207, in fetch_mail
context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1161, in message_process
thread_id = self.message_route_process(cr, uid, msg_txt, msg, routes, context=context)
2014-10-16 03:42:25,076 13186 INFO medeq openerp.addons.fetchmail.fetchmail: start checking for new emails on imap server info
2014-10-16 03:42:31,401 13186 ERROR medeq openerp.addons.fetchmail.fetchmail: Failed to process mail from imap server info.
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/addons/fetchmail/fetchmail.py", line 207, in fetch_mail
context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1160, in message_process
routes = self.message_route(cr, uid, msg_txt, msg, model, thread_id, custom_values, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
OpenERP Server Error
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 500, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 517, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/GreenOdoo/source/openerp/http.py", line 283, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
$KCODE = 'u'
# Goal: 小写金额转换为大写金额
# Limit: 金额整数位支持到亿位,小数点后支持两位并且不支持四舍五入
class ChineseFee
attr_reader :chn_numbers, :chn_units, :chn_decimals
def initialize
@chn_numbers = %w(零 壹 贰 叁 肆 伍 陆 柒 捌 玖)
@chn_units = %w(元 拾 佰 仟 万 拾万 佰万 仟万 亿)