Christophe Simonis
6d97e2c0ab
[FIX] stop related crons when closing a database
...
bzr revid: chs@openerp.com-20110118192637-i0yyyo86pa2hzq1d
2011-01-18 20:26:37 +01:00
P. Christeas
0d691b2230
[FIX] netsvc.Agent, ir.cron: pythonic logging instead of legacy netsvc logging
...
bzr revid: odo@openerp.com-20110118180154-1ek9mmf8yarh4se5
2011-01-18 19:01:54 +01:00
Olivier Dony
cb5ebabbf6
[FIX] base_data: fix GBP currency sign (courtesy of Vadim - SmartMode LTD)
...
lp bug: https://launchpad.net/bugs/704138 fixed
bzr revid: odo@openerp.com-20110118171503-0mw03ediw8ayu4vm
2011-01-18 18:15:03 +01:00
Julien Thewys
0a71cd2982
[MERGE] netrpc: disable TCP "Nagle" algorithm to minimize RPC delays, especially on windows
...
bzr revid: odo@openerp.com-20110118155946-9h207h8np16bplqh
2011-01-18 16:59:46 +01:00
P.Christeas
fe2e83e5a8
[MERGE] xmlrpc,netrpc: try to minimize number of network packets sent for each RPC call
...
bzr revid: odo@openerp.com-20110118155743-uq0llrmz1zn9fr3p
2011-01-18 16:57:43 +01:00
J-E Baudoux
483b7ed193
[MERGE] orm,base: added ir.model introspection OOo report, made orm._get_xml_ids() private (return type incompatible with XML-RPC)
...
bzr revid: odo@openerp.com-20110118155219-z02i8o5oz0q2vd09
2011-01-18 16:52:19 +01:00
Fabien Pinckaers
3f18729893
[IMP] comment for later use
...
bzr revid: fp@tinyerp.com-20110118131247-5pe69he7962q64p9
2011-01-18 14:12:47 +01:00
P. Christeas
e82fca056d
websrv_lib: flush at plain http, too
...
Since the write-buffering was enabled, it is now needed to flush.
Fixes static http, at least.
bzr revid: p_christ@hol.gr-20110118130005-tk5rz84po3q7qofu
2011-01-18 15:00:05 +02:00
P. Christeas
6e2fee84f8
http_server: enable write-buffering for TCP sockets
...
When sending http data, we need to minimize the number of TCP packets.
By enabling write-buffering, we can achieve that. However, we need to
make sure that buffers will properly be flushed, not linger.
Conflicts:
bin/service/http_server.py
bzr revid: p_christ@hol.gr-20110118125959-vk0gzx30bwykn18s
2011-01-18 14:59:59 +02:00
P. Christeas
5168d0bd09
websrv_lib: defer one socket.flush(), keep packets minimum.
...
bzr revid: p_christ@hol.gr-20110118125907-t7dz40a40pj6k8gs
2011-01-18 14:59:07 +02:00
P. Christeas
06b0cdbfaa
net-rpc: Send all data in one TCP packet
...
This optimises the TCP layer significantly, avoids ACK delays.
Inspired by: Julien Thewys
bzr revid: p_christ@hol.gr-20110118125903-5hrg89kpi1vuadv9
2011-01-18 14:59:03 +02:00
qdp-launchpad@tinyerp.com
adf47cf279
[IMP] base: improved view of wizards 'Load an Official Translation' and 'Register a Contract'
...
bzr revid: qdp-launchpad@tinyerp.com-20110118125751-9jys0rj1i41elyp1
2011-01-18 13:57:51 +01:00
Julien Thewys
996c6602a4
[FIX] typo
...
bzr revid: jth@openerp.com-20110118101441-tx27olsxkkl3m0vs
2011-01-18 11:14:41 +01:00
Launchpad Translations on behalf of openerp
1be56517a3
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20110118043543-u6cex00pklf16ba4
2011-01-18 04:35:43 +00:00
P. Christeas
695f87fa6a
netsvc: fix Agent patch, w. daemon threads and py. logging. [1/2]
...
Conflicts:
bin/netsvc.py (kept only the pythonic logging part)
bzr revid: p_christ@hol.gr-20110117213850-5pq5suu1rje6h2cd
2011-01-17 23:38:50 +02:00
P. Christeas
d187fa7bf8
ir_cron: some port to pythonic logging
...
bzr revid: p_christ@hol.gr-20110117213108-u0k7n9y4xmtudvnk
2011-01-17 23:31:08 +02:00
Julien Thewys
7e9b439c1c
[FIX] socket: avoids interaction between Nagle and delayed ACK algorithm.
...
By default, ACK delay is 200ms on Windows which terribly slows down
conversations between client and server (when deployed on different machines).
To avoid any slow down, TCP_NODELAY should be enabled on clients' socket too.
More details:
http://developers.slashdot.org/comments.pl?sid=174457&threshold=1&commentsort=0&mode=thread&cid=14515105
bzr revid: jth@openerp.com-20110117205959-8kxaz0of8ta9dmfw
2011-01-17 21:59:59 +01:00
P. Christeas
e29e641514
[MERGE] osv,ir_model: fixes for fnct_search implementations returning [] + ir.model.data passing browse_records to create()
...
bzr revid: odo@openerp.com-20110117204932-8ldxndduwqsdyofc
2011-01-17 21:49:32 +01:00
Anup (OpenERP)
2298231380
[FIX] orm.search: fix ordering when multiple order columns are used
...
Original refactoring forgot to properly fix the split,
in revision 3143.1.2 revid:odo@openerp.com-20101221192344-87d7ajnfsn5unm9p
bzr revid: odo@openerp.com-20110117200837-h2ynvbqngp0pb3za
2011-01-17 21:08:37 +01:00
Vo Minh Thu
0b3323b1ad
[FIX] res_widget_data: corrected facebook widget url and widgets width.
...
bzr revid: vmt@openerp.com-20110117192313-vk4tibwvk68qmbbi
2011-01-17 20:23:13 +01:00
Olivier Dony
1896ef488b
[FIX] ir.model.data: ensure cache of known "model data reference ids" is not lost after osv inheritance
...
By storing this cache in the pool and only referencing it in the instance we ensure that it is not lost
when the osv instance is replaced in the pool, e.g. as soon as on osv object inherits from ir.model.data.
This is now needed, as the module data cleanup is now done globally at the end of all module installation,
while it was done on a smaller scale before (leading to other kinds of issues).
lp bug: https://launchpad.net/bugs/704051 fixed
lp bug: https://launchpad.net/bugs/701644 fixed
bzr revid: odo@openerp.com-20110117184453-kxvbuzmuge6u1mh4
2011-01-17 19:44:53 +01:00
Olivier Dony
3d4d87b718
[FIX] report.interface: toxml() should return unicode to avoid any encoding issue propagation
...
It used to return utf-8 data but was brittle in the conversion, and would fail downstream
if the calling code did not pay attention to handle utf-8 data properly.
Returning unicode forces callers to auto-cast to unicode for any string operation, saving
potential trouble later.
From the addons that currently call toxml(), none use it in a manner that would fail in case
unicode data is returned, so we should be on the safe side there too.
lp bug: https://launchpad.net/bugs/695960 fixed
bzr revid: odo@openerp.com-20110117184444-mxjeneuoa0r5a85n
2011-01-17 19:44:44 +01:00
Vo Minh Thu
c16b72387a
[FIX] translate: make sure we don't insert null values in ir_translation for missing ir_data_models.
...
bzr revid: vmt@openerp.com-20110117171608-08a0u7wpc8cx8uu1
2011-01-17 18:16:08 +01:00
Yogesh (OpenERP)
ba2ee50c84
[MERGE] workflow: correctly pass ids as list when printing workflows with subflows
...
lp bug: https://launchpad.net/bugs/701058 fixed
bzr revid: odo@openerp.com-20110117170525-bbqh6k584k6ssa0g
2011-01-17 18:05:25 +01:00
Yogesh (OpenERP)
cd8515c8b4
[MERGE] base data: make default shortcuts non-updatable, to avoid possible conflicts at update
...
lp bug: https://launchpad.net/bugs/699866 fixed
bzr revid: odo@openerp.com-20110117165840-1d5cwsxf24lwflw3
2011-01-17 17:58:40 +01:00
Olivier Dony
eac572cb0f
[FIX] base: rename config wizard menu to Reconfigure (now that shortcuts are translatable)
...
bzr revid: odo@openerp.com-20110117153202-860gfbo2qgyiz05u
2011-01-17 16:32:02 +01:00
qdp-launchpad@tinyerp.com
97b7f9251e
[IMP] res.partner.address: changed the _order from 'name' to 'type, name'
...
bzr revid: qdp-launchpad@tinyerp.com-20110117151757-uk8m60upj1lc71sv
2011-01-17 16:17:57 +01:00
Vo Minh Thu
b640d02a60
[FIX] translation: corrected search on loading translation.
...
bzr revid: vmt@openerp.com-20110117140504-ha3nilfa7csxh3bs
2011-01-17 15:05:04 +01:00
Olivier Dony
2639d28bf0
[FIX] websrv_lib: missing import errno
...
bzr revid: odo@openerp.com-20110117121524-jswvwrmiqfs4d28t
2011-01-17 13:15:24 +01:00
Yogesh (OpenERP)
0fdcdcaf6a
[MERGE] res.request: request_get() should not count closed requests in current ones
...
lp bug: https://launchpad.net/bugs/698039 fixed
bzr revid: odo@openerp.com-20110117102702-xkk6dqvgcrhhwsci
2011-01-17 11:27:02 +01:00
Olivier Dony
5b2e2371ca
[FIX] res.partner: reverted incorrect patch for Addresses action, until a proper fix is done
...
Reverted revision: 3152.1.1 fde@openerp.com-20101222154236-vpuqk0ou0svugwkg
lp bug: https://launchpad.net/bugs/703226 fixed
bzr revid: odo@openerp.com-20110117100448-eba1mhz3gt45mu69
2011-01-17 11:04:48 +01:00
P. Christeas
814c4af299
[FIX] osv: _constraints can be inherited by redefining a constraint with the same name
...
Indeed, when we define an expression like
class bar(osv.osv):
_inherit = 'bar.bar'
def _check_foo(self, cr, uid, ids, context):
return True
_constraints = [ (_check_foo, "Foo failed!", ['foo']) ]
... it means that _check_foo will be passed as an *object* to the model's
structure of _constraints. Therefore, it would be unequal and just append
the list of any existing constraints. So, an older (_check_foo, , ['foo'])
would always remain active using the previous code. This has to do with
the _check_foo being an unbound (ie. not inheritable) function.
Now, we check the /string name/ of the function, too. We say that if the
inherited class's constraint function has the same name "_check_foo", the
old ones shall be replaced.
Note: this MAY introduce unpredictable results, if several modules try
to override the same inherited constraint. There is no guaranteed order
of inheritance. Please avoid using this feature unless necessary.
lp bug: https://launchpad.net/bugs/700451 fixed
bzr revid: odo@openerp.com-20110117094750-4lyzx165f1z1zgl4
2011-01-17 10:47:50 +01:00
P. Christeas
795b2bdcae
expression: fix function.search() when it does not restrict
...
Triggered by [Bug 702340]
When we try to search a composite expression like:
[( 'ourfoo.subfoo', '=' , True) ]
.. where subfoo is a function field of the model ofourfoo field,
the framework will call subfoo.search([('subfoo','=',True)]).
The latter shall return a domain expression that will restrict
the search on 'ourfoo'.
When the returned expression is empty, meaning "match all", the algebra
on the parent expression would come up with an invalid [..., '&', ( 1, '=', 1) ]
sequence.
bzr revid: p_christ@hol.gr-20110117084108-vt1qe72lhw8ldxqm
2011-01-17 10:41:08 +02:00
P. Christeas
c180358e30
ir.model: fix loading of data, for inheriting models
...
Since a recent commit, non (long, int) values will propagate, so we'd
better not use inherit_id = browse_record(...) as a value in create()'s
dict.
Previously, it did work because we define __int__() so that:
int(browse_record(...)) == browse_record(...).id
bzr revid: p_christ@hol.gr-20110117084054-8qv5uc4vt4w9aygv
2011-01-17 10:40:54 +02:00
Fabien Pinckaers
4e0bc0926d
[FIX] lp 703649
...
bzr revid: fp@tinyerp.com-20110117072932-4y3jmdgo2s9ushj6
2011-01-17 08:29:32 +01:00
Launchpad Translations on behalf of openerp
acc5c03dfb
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20110116050632-y2dx1hzogk9swvth
bzr revid: launchpad_translations_on_behalf_of_openerp-20110116050251-14qxhugog9k60l75
bzr revid: launchpad_translations_on_behalf_of_openerp-20110117044929-4xn1kiab1qw5cire
2011-01-17 04:49:29 +00:00
Fabien Pinckaers
8bc146d459
fix_logging
...
bzr revid: fp@tinyerp.com-20110115170802-n8o5kmx9vblfn0jw
2011-01-15 18:08:02 +01:00
Fabien Pinckaers
322976309e
[IMP] logging for set null failed
...
bzr revid: fp@tinyerp.com-20110115170410-s0z661hshxjzj6b7
2011-01-15 18:04:10 +01:00
Fabien Pinckaers
f01e3326ba
fix
...
bzr revid: fp@tinyerp.com-20110115132456-hk9vf0sfyrly0xox
2011-01-15 14:24:56 +01:00
Olivier Dony
c2af4fde4f
[FIX] ir.ui.view_sc: shortcuts are now translated, and using the name_get() of the linked resource
...
lp bug: https://launchpad.net/bugs/699858 fixed
bzr revid: odo@openerp.com-20110115045058-d7iqs6himuf2kyps
2011-01-15 05:50:58 +01:00
Olivier Dony
697eea26e4
[FIX] orm.read_group: prepend fields with table names to avoid collisions in SQL queries
...
lp bug: https://launchpad.net/bugs/703105 fixed
bzr revid: odo@openerp.com-20110115013109-q1ekx17docisqhd0
2011-01-15 02:31:09 +01:00
Olivier Dony
570d35e824
[FIX] fields.property: restore compatibility with non-m2o properties
...
Was broken by revision 3029.2.20 ysa@tinyerp.com-20101231061314-jhjc6c2uyeqko19x , fixing bug 692891
lp bug: https://launchpad.net/bugs/692891 fixed
bzr revid: odo@openerp.com-20110114230524-zkkvgi6ch7gk3d4m
2011-01-15 00:05:24 +01:00
Olivier Dony
04d2a25816
[FIX] base: currency updates: names for SEK,NOK,DKK; symbol for RON; dropped obsolete EKK
...
lp bug: https://launchpad.net/bugs/702475 fixed
bzr revid: odo@openerp.com-20110114215051-cbpd7wfbj1uiqpxx
2011-01-14 22:50:51 +01:00
Olivier Dony
0efe4d882b
[FIX] orm.write(): avoid name collision of "ids" variable, causing side-effects + some doc
...
lp bug: https://launchpad.net/bugs/702744 fixed
bzr revid: odo@openerp.com-20110114211642-muwdr966zn84p4ma
2011-01-14 22:16:42 +01:00
Fabien Pinckaers
fd9c04edcd
fix
...
bzr revid: fp@tinyerp.com-20110114190038-0h62306fd35pe0sp
2011-01-14 20:00:38 +01:00
Fabien Pinckaers
cbca1196b4
[FIX] changed a warning to a debug
...
bzr revid: fp@tinyerp.com-20110114183657-3mdz433zn2wlx2s8
2011-01-14 19:36:57 +01:00
Fabien Pinckaers
cd534cb224
fix
...
bzr revid: fp@tinyerp.com-20110114152947-ta7t20oze0jsneju
2011-01-14 16:29:47 +01:00
Olivier Dony
858fdc9a40
[FIX] orm.import_data: look for exact match of name_search (courtesy of Martin Collins)
...
lp bug: https://launchpad.net/bugs/698354 fixed
bzr revid: odo@openerp.com-20110114105509-ozlgcpodsgvnp1m5
2011-01-14 11:55:09 +01:00
Launchpad Translations on behalf of openerp
62f28364e5
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20110114045237-gdlm32e67rdh70kr
bzr revid: launchpad_translations_on_behalf_of_openerp-20110114055119-e9fpaxlistgondmp
2011-01-14 05:51:19 +00:00
Sbh (OpenERP)
168c2b0dbc
[MERGE] Merge with lp:openobject-server
...
bzr revid: sbh@tinyerp.com-20110111045110-lah24j495ud36hbw
bzr revid: sbh@tinyerp.com-20110113121529-99raloplqzxujo9c
2011-01-13 17:45:29 +05:30