[MERGE] Forward-port from 7.0 up to 8b3d69a0d7
This commit is contained in:
commit
733cb3e76f
|
@ -41,6 +41,7 @@ from openerp.tools.translate import _
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
MAX_POP_MESSAGES = 50
|
MAX_POP_MESSAGES = 50
|
||||||
|
MAIL_TIMEOUT = 60
|
||||||
|
|
||||||
# Workaround for Python 2.7.8 bug https://bugs.python.org/issue23906
|
# Workaround for Python 2.7.8 bug https://bugs.python.org/issue23906
|
||||||
poplib._MAXLINE = 65536
|
poplib._MAXLINE = 65536
|
||||||
|
@ -153,6 +154,8 @@ openerp_mailgate: "|/path/to/openerp-mailgate.py --host=localhost -u %(uid)d -p
|
||||||
#connection.user("recent:"+server.user)
|
#connection.user("recent:"+server.user)
|
||||||
connection.user(server.user)
|
connection.user(server.user)
|
||||||
connection.pass_(server.password)
|
connection.pass_(server.password)
|
||||||
|
# Add timeout on socket
|
||||||
|
connection.sock.settimeout(MAIL_TIMEOUT)
|
||||||
return connection
|
return connection
|
||||||
|
|
||||||
def button_confirm_login(self, cr, uid, ids, context=None):
|
def button_confirm_login(self, cr, uid, ids, context=None):
|
||||||
|
|
|
@ -151,6 +151,8 @@ Example: 10% for retailers, promotion of 5 EUR on this product, etc."""),
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def onchange_task_work(self, cr, uid, ids, task_work, context=None):
|
def onchange_task_work(self, cr, uid, ids, task_work, context=None):
|
||||||
|
if not task_work:
|
||||||
|
return {'value': {}}
|
||||||
return {'value': {
|
return {'value': {
|
||||||
'module_project_timesheet': task_work,
|
'module_project_timesheet': task_work,
|
||||||
'module_project_mrp': task_work,
|
'module_project_mrp': task_work,
|
||||||
|
|
|
@ -76,7 +76,7 @@ _schema = logging.getLogger(__name__ + '.schema')
|
||||||
# List of etree._Element subclasses that we choose to ignore when parsing XML.
|
# List of etree._Element subclasses that we choose to ignore when parsing XML.
|
||||||
from openerp.tools import SKIPPED_ELEMENT_TYPES
|
from openerp.tools import SKIPPED_ELEMENT_TYPES
|
||||||
|
|
||||||
regex_order = re.compile('^( *([a-z0-9_]+|"[a-z0-9_]+")( *desc| *asc)?( *, *|))+$', re.I)
|
regex_order = re.compile('^(\s*([a-z0-9:_]+|"[a-z0-9:_]+")(\s+(desc|asc))?\s*(,|$))+(?<!,)$', re.I)
|
||||||
regex_object_name = re.compile(r'^[a-z0-9_.]+$')
|
regex_object_name = re.compile(r'^[a-z0-9_.]+$')
|
||||||
|
|
||||||
AUTOINIT_RECALCULATE_STORED_FIELDS = 1000
|
AUTOINIT_RECALCULATE_STORED_FIELDS = 1000
|
||||||
|
|
Loading…
Reference in New Issue