This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$KCODE = 'u' | |
# Goal: 小写金额转换为大写金额 | |
# Limit: 金额整数位支持到亿位,小数点后支持两位并且不支持四舍五入 | |
class ChineseFee | |
attr_reader :chn_numbers, :chn_units, :chn_decimals | |
def initialize | |
@chn_numbers = %w(零 壹 贰 叁 肆 伍 陆 柒 捌 玖) | |
@chn_units = %w(元 拾 佰 仟 万 拾万 佰万 仟万 亿) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-10-16 03:32:51,368 13186 INFO medeq openerp.addons.mail.mail_thread: Routing mail from wewe <[email protected]> to 上海万德医疗有限公司<[email protected]> with Message-Id <CAAyNhWtphmJFU0srhoSacAQiWYpOLMOC8SSkFJ8DCgjBMoQN6w@mail.gmail.com>: direct reply to a private message: 26, custom_values: None, uid: 1 | |
2014-10-16 03:32:51,392 13186 ERROR medeq openerp.sql_db: bad query: INSERT INTO "mail_message" ("id", "body", "model", "record_name", "res_id", "message_id", "parent_id", "subtype_id", "reply_to", "no_auto_thread", "date", "author_id", "type", "email_from", "subject", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('mail_message_id_seq'), '<div dir="ltr">我们要订购100箱东西</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 11:20 AM, wewe <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>可以,合作愉快</p> | |
--<b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> to [email protected] 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) |