Olivier Dony
ebb3df4f8c
[FIX] convert: fix previous partial fix for removing redundant @type for <menuitem>
...
bzr revid: odo@openerp.com-20120823100252-zmhpaocb2bb11c99
2012-08-23 12:02:52 +02:00
Turkesh Patel (Open ERP)
7b36f6a7bd
[MRG] merge with lp:openobject-server.
...
bzr revid: tpa@tinyerp.com-20120823050804-nrpewpzqtcqgl6fq
2012-08-23 10:38:04 +05:30
Olivier Dony
93f676d9cd
[MERGE] convert,rng: forbid redundant @type for menuitem, now inferred from the action type
...
bzr revid: odo@openerp.com-20120822171932-xz6i6k5nxurqfac9
2012-08-22 19:19:32 +02:00
Olivier Dony
a337ca201d
[IMP] rng: forbid redundant @type for menuitem, now inferred from the action type + minor cleanup
...
bzr revid: odo@openerp.com-20120822144946-fdsw9ee1ia3nfe86
2012-08-22 16:49:46 +02:00
Fabien Pinckaers
3c8c168f85
merge_trunk
...
bzr revid: fp@tinyerp.com-20120822133509-v4irlqdjjba0wxxn
2012-08-22 15:35:09 +02:00
Christophe Simonis
4eafc023b3
[IMP] tools.misc.mute_logger can now be used as decorator
...
bzr revid: chs@openerp.com-20120822122013-9uxjwr9oqohseton
2012-08-22 14:20:13 +02:00
Antonin Bourguignon
f7a5eb5d6c
[MERGE] latest trunk
...
bzr revid: abo@openerp.com-20120821172259-su6vqvxecwb5zra2
bzr revid: abo@openerp.com-20120822121220-yl5e9lhd7v4ap75a
2012-08-22 14:12:20 +02:00
Turkesh Patel (Open ERP)
568288c3e1
[MRG] merge with main branch.
...
bzr revid: tpa@tinyerp.com-20120822115641-3l3yla4kji6xaxm6
2012-08-22 17:26:41 +05:30
Christophe Simonis
89f1693653
[IMP] remove unwanted log in test
...
bzr revid: chs@openerp.com-20120822110604-il0sxlvf592wasur
2012-08-22 13:06:04 +02:00
Christophe Simonis
610c8d8078
[IMP] yaml import: log as TEST only for test files
...
bzr revid: chs@openerp.com-20120822101156-v5w2kljumas2cyq0
2012-08-22 12:11:56 +02:00
Antonin Bourguignon
8dd80d5dcf
[FIX] handling of the action's module xml id.
...
also don't use the attribute anymore
bzr revid: abo@openerp.com-20120821172224-9unwry0p27tn7d82
2012-08-21 19:22:24 +02:00
Antonin Bourguignon
a2db8022d3
[FIX] xml import: when using a menuitem tag, properly determine the type of action that is referenced
...
the attribute for the element should now be useless
bzr revid: abo@openerp.com-20120821164054-6zzad2k6nmebqe35
2012-08-21 18:40:54 +02:00
Thibault Delavallée
b772da168f
[FIX] tools: emails_split -> email-split.
...
bzr revid: tde@openerp.com-20120821151413-9hxmsyp51q3ny32f
2012-08-21 17:14:13 +02:00
Fabien Pinckaers
1a4f68554d
[IMP] needaciton + mail
...
bzr revid: fp@openerp.com-20120819150038-u6519dee90enzui4
2012-08-19 17:00:38 +02:00
Jigar Amin - OpenERP
ea714905cc
merge lp:openobject-server
...
bzr revid: jam@tinyerp.com-20120817062128-yfagkxdhn201yiop
2012-08-17 11:51:28 +05:30
Fabien Pinckaers
b9bdf2c29a
[IMP] tools.email_split
...
bzr revid: fp@tinyerp.com-20120816164239-yl1vzp83w6z5xi5i
2012-08-16 18:42:39 +02:00
Christophe Simonis
7dc9b6087c
[IMP] handle menuitems with "server" and "client" type + ensure menu has a name
...
bzr revid: chs@openerp.com-20120816130406-bsselo97f8tyzcit
2012-08-16 15:04:06 +02:00
Vo Minh Thu
ae4852f597
[IMP] html_sanitize: remove dependency on pyquery.
...
Relying on pyquery is unnecessary (using etree alone is enough). This patch
reimplements the html_sanitize() function without pyquery. The new
implementation still goes through the provided test suite with success.
bzr revid: vmt@openerp.com-20120816104540-9374llhzde54h2vz
2012-08-16 12:45:40 +02:00
niv-openerp
1885387ace
[IMP] added html field
...
bzr revid: nicolas.vanhoren@openerp.com-20120814130656-4pa91mud8u30mqr5
2012-08-14 15:06:56 +02:00
niv-openerp
63ae87fb4c
Fixed encoding problems
...
bzr revid: nicolas.vanhoren@openerp.com-20120814121425-jq3ieebbsa7rcds5
2012-08-14 14:14:25 +02:00
niv-openerp
f111a51f10
Fixed problem when message is false (i think)
...
bzr revid: nicolas.vanhoren@openerp.com-20120814094401-uv548xbylkfq8bun
2012-08-14 11:44:01 +02:00
niv-openerp
dc170d1a9a
Added protection against javascript in <a>
...
bzr revid: nicolas.vanhoren@openerp.com-20120813155205-uohwb39ejn66bgmv
2012-08-13 17:52:05 +02:00
niv-openerp
8dfa86afd9
removed images
...
bzr revid: nicolas.vanhoren@openerp.com-20120813144401-cll0enjblqkh8ina
2012-08-13 16:44:01 +02:00
niv-openerp
10155376c4
Did better stuff
...
bzr revid: nicolas.vanhoren@openerp.com-20120813143755-g9ccs0iubcwvm02i
2012-08-13 16:37:55 +02:00
Vo Minh Thu
7a0abed231
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120813142443-73d6zm10bqhm17mp
2012-08-13 16:24:43 +02:00
niv-openerp
e5fb45a329
First working version of the html sanitizer
...
bzr revid: nicolas.vanhoren@openerp.com-20120813142232-xn7h0ov7mb3pls4o
2012-08-13 16:22:32 +02:00
Thibault Delavallée
138e9c2739
[IMP] tools: image: added a sharpen filter when resizing images. Resized images quality is much better; but demo data are a bit 'aliased'.
...
bzr revid: tde@openerp.com-20120813141321-isaz930h3roov1ui
2012-08-13 16:13:21 +02:00
niv-openerp
11780a2267
Added some code to sanitize html
...
bzr revid: nicolas.vanhoren@openerp.com-20120813125307-d8cycdvtd7ad0f8e
2012-08-13 14:53:07 +02:00
Harry (OpenERP)
b50c926c3b
[MERGE]
...
bzr revid: hmo@tinyerp.com-20120809131924-zr97dntpfb22vitv
2012-08-09 18:49:24 +05:30
Olivier Dony
f5e7d53bce
[IMP] tools.reference_re: support matching model name as well
...
bzr revid: odo@openerp.com-20120807161202-jav73f2kj86pzil4
2012-08-07 18:12:02 +02:00
Thibault Delavallée
22d6665842
[CLEAN] [DOC] Pre-merge review: image: added comments. Also renamed functions, now prefixed with a image_* .
...
bzr revid: tde@openerp.com-20120807110834-uk3ymnxb5qz4hr8e
2012-08-07 13:08:34 +02:00
ajay javiya (OpenERP)
6ba2d5da96
[FIX]:Fix a predicate function doc
...
bzr revid: aja@tinyerp.com-20120807065455-hn71rrs0yoav0zi5
2012-08-07 12:24:55 +05:30
ajay javiya (OpenERP)
3d3d51df0d
[IMP]: Improve validation
...
bzr revid: aja@tinyerp.com-20120806133728-sa372lbgoc8rdebu
2012-08-06 19:07:28 +05:30
Thibault Delavallée
4d9ff0d5f9
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120806124337-9z4ussrxn2uhli4i
2012-08-06 14:43:37 +02:00
Jigar Amin - OpenERP
0632619b27
merge lp:~openerp-dev/openobject-server/trunk-sloppy-rng-vmt
...
bzr revid: jam@tinyerp.com-20120806103914-2wz2xsxeu2vhrfy6
2012-08-06 16:09:14 +05:30
Jigar Amin - OpenERP
6c48585a91
[FIX] impoved the message
...
bzr revid: jam@tinyerp.com-20120806103631-tzmpq4g48urbic5l
2012-08-06 16:06:31 +05:30
Vo Minh Thu
66d054471c
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120806102630-psx2mywo3w5da81i
2012-08-06 12:26:30 +02:00
Jigar Amin - OpenERP
3614cc9aaa
[FIX] fixed the predicated for tree view must have string and field and button attrib only
...
bzr revid: jam@tinyerp.com-20120806095854-6vwpgzjqtc0qwn5b
2012-08-06 15:28:54 +05:30
Vo Minh Thu
be06e66caa
[IMP] xml validation: added logging for invalid input.
...
bzr revid: vmt@openerp.com-20120806091852-yftb14cw1mrvc3hu
2012-08-06 11:18:52 +02:00
Fabien Pinckaers
d07263eed3
[IMP] introducing new file type: html
...
bzr revid: fp@openerp.com-20120804143643-e0331dgtkbxejfmy
2012-08-04 16:36:43 +02:00
Thibault Delavallée
fef75dc8c2
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120730073218-zytvpekawh55owgd
2012-07-30 09:32:18 +02:00
Jigar Amin - OpenERP
f2cdadda7a
[MERGE] lp:~openerp-commiter/openobject-server/trunk-sloppy-rng-jam-fix-aja
...
bzr revid: jam@tinyerp.com-20120730053722-lci9q2yqjgj4u1be
2012-07-30 11:07:22 +05:30
ajay javiya (OpenERP)
74c5af12d5
[IMP]: Improve view validation
...
bzr revid: aja@tinyerp.com-20120730051446-i5krti4889lwbgcn
2012-07-30 10:44:46 +05:30
ajay javiya (OpenERP)
337b364bc7
[IMP]:Improve in view_validation
...
bzr revid: aja@tinyerp.com-20120726090913-3nikkq1nnpsa051s
2012-07-26 14:39:13 +05:30
Olivier Dony
4e372be92d
[FIX] tools.email_send: never close the request's cursor
...
bzr revid: odo@openerp.com-20120725162039-3gjf30hgh2hxhmk2
2012-07-25 18:20:39 +02:00
Jigar Amin - OpenERP
d0910e1b38
[IMP] integreated the web serivce for the translations
...
bzr revid: jam@tinyerp.com-20120713114208-yndy8hus850bh97z
2012-07-13 17:12:08 +05:30
Turkesh Patel (Open ERP)
48a344c1e8
[IMP] improved code.
...
bzr revid: tpa@tinyerp.com-20120713095448-ghr750h2jk9ivsj2
2012-07-13 15:24:48 +05:30
Turkesh Patel (Open ERP)
8383d6a245
[IMP] Fetch only traslated and distinct strings using sql.
...
bzr revid: tpa@tinyerp.com-20120713092838-5th251msbdkgjdnb
2012-07-13 14:58:38 +05:30
Turkesh Patel (Open ERP)
f05ee5dfdb
[IMP] improved code.
...
bzr revid: tpa@tinyerp.com-20120713055330-avz6ebzuqvcpxdd5
2012-07-13 11:23:30 +05:30
Turkesh Patel (Open ERP)
c17ea49de9
[IMP] improved code
...
bzr revid: tpa@tinyerp.com-20120712132700-zc4co6o4plhzoi60
2012-07-12 18:57:00 +05:30
Turkesh Patel (Open ERP)
bc76991e24
[IMP] improved code.
...
bzr revid: tpa@tinyerp.com-20120712132308-1qvurv572sxmsnqe
2012-07-12 18:53:08 +05:30
Turkesh Patel (Open ERP)
d87adc497e
[IMP] improved code to get translation from database.
...
bzr revid: tpa@tinyerp.com-20120712085838-pqzj86fptp96eag6
2012-07-12 14:28:38 +05:30
Turkesh Patel (Open ERP)
4ea3ad65b2
[ADD] added module field in ir.translation and improved code for that.
...
bzr revid: tpa@tinyerp.com-20120712052111-5qq9noxd5vd9dlwv
2012-07-12 10:51:11 +05:30
Turkesh Patel (Open ERP)
f9ad472466
[ADD] add new http service translation.
...
bzr revid: tpa@tinyerp.com-20120711071054-rfreaxwys8b1fqbc
2012-07-11 12:40:54 +05:30
Turkesh Patel (Open ERP)
c49f2418c2
[FIX] Typo in Portuguese official language names.
...
bzr revid: tpa@tinyerp.com-20120704051748-y41la206dwk67klv
2012-07-04 10:47:48 +05:30
Jigar Amin - OpenERP
abd4a068a1
[FIX] typo
...
bzr revid: jam@tinyerp.com-20120703085127-8m8y25nmm4acbkmq
2012-07-03 14:21:27 +05:30
Jigar Amin - OpenERP
04fa87b2aa
[MERGE] lp:~openerp-commiter/openobject-server/trunk-sloppy-rng-jam-validation-aja
...
bzr revid: jam@tinyerp.com-20120703084620-aioarva0jgombwo4
2012-07-03 14:16:20 +05:30
ajay javiya (OpenERP)
78ba98baa0
[ADD]: Add validation for view
...
bzr revid: aja@tinyerp.com-20120703060737-cnnuzzfc8yfa8rcd
2012-07-03 11:37:37 +05:30
Olivier Dony
e3922a054b
[FIX] OPW 572856: translate: attempt to auto-detect user's language preferences when no context is available
...
lp bug: https://launchpad.net/bugs/434266 fixed
bzr revid: odo@openerp.com-20120629120418-q61hd8cbxy2nftva
2012-06-29 14:04:18 +02:00
Fabien Pinckaers
ed4c342d9c
[IMP] Translations of static terms in views
...
bzr revid: fp@tinyerp.com-20120628141632-ghixqjf59jodqgx4
2012-06-28 16:16:32 +02:00
Thibault Delavallée
931029d105
[IMP] tools/image.py: improved functions, take False case into account, made a tool function for orm methods; added coments.
...
bzr revid: tde@openerp.com-20120628095840-7sjcikxtmyuyc44n
2012-06-28 11:58:40 +02:00
Thibault Delavallée
59ec75cbb0
[ADD] tools.images: added function to resize images.
...
bzr revid: tde@openerp.com-20120627132739-zdgvdqh2nbsfkyv7
2012-06-27 15:27:39 +02:00
Thibault Delavallée
403ca77b8f
[ADD] tools: added image.py, intended to hold the resize functions; also added in__init__.
...
bzr revid: tde@openerp.com-20120627101256-4q4miayorfcqh05w
2012-06-27 12:12:56 +02:00
Olivier Dony
e3f997c44d
[FIX] yaml_import: support False as a o2m default value
...
bzr revid: odo@openerp.com-20120625144013-r6j6zabaap6739gf
2012-06-25 16:40:13 +02:00
Vo Minh Thu
2666ab3fe0
[IMP] ir.ui.view: Added assertion-based checks.
...
bzr revid: vmt@openerp.com-20120622131004-stn7tf68xph3f278
2012-06-22 15:10:04 +02:00
Olivier Dony
a320a72cf8
[FIX] yaml_import: fix incorrect m2m default handling from previous commit
...
bzr revid: odo@openerp.com-20120621110532-fsi7hz8fllnlab07
2012-06-21 13:05:32 +02:00
DHS (OpenERP)
05b1ef36b8
[yaml_import] : For many2many field default value not stored (case : 574360)
...
bzr revid: dhs@tinyerp.com-20120619124849-ilnzi9r994hob5go
2012-06-19 18:18:49 +05:30
Vo Minh Thu
ebf1383785
ir.ui.view: type field can be a functional field.
...
bzr revid: vmt@openerp.com-20120619101425-u73r47zdhsg7ecma
2012-06-19 12:14:25 +02:00
Holger Brunn
3666ed9828
[FIX] (safe_eval) opcode STORE_MAP belongs into _CONST_OPCODES
...
otherwise, const_eval("{'hello':'world'}") won't work
bzr revid: hbrunn@therp.nl-20120613090222-gt33zwz1aymcmxqo
2012-06-13 11:02:22 +02:00
Xavier Morel
a59da4d476
[REM] ir_set from _tag_url's convert
...
Hinges on @menu (not allowed on the url tag), @keyword (not allowed either) and sets the url on the url
bzr revid: xmo@openerp.com-20120608103815-n20dhponzinhr7xf
2012-06-08 12:38:15 +02:00
Xavier Morel
48166edeb8
[FIX] rename ir.actions.url to match action's type
...
bzr revid: xmo@openerp.com-20120608101710-ncwcmu9u72u7mxcy
2012-06-08 12:17:10 +02:00
Christophe Simonis
240943961e
[IMP] log exceptions in safe_eval
...
bzr revid: chs@openerp.com-20120605152630-d4flr4c3mwl7wnvx
2012-06-05 17:26:30 +02:00
Xavier ALT
336f72c344
[FIX] config: only type check known options
...
bzr revid: xal@openerp.com-20120530064237-u97y6h5waetl9nf4
2012-05-30 08:42:37 +02:00
Xavier ALT
0c32cb4936
[FIX] config: when assigning new value, ensure that value are correctly type checked
...
This make configmanager stronger about config params values (if we need to enforce
them as int, float, ...). Helping gunicorn user's to not set wrong value, like:
conf['cpu_time_limit'] = '180'
In that case, type checker will gracefully convert it to interger.
bzr revid: xal@openerp.com-20120523125354-jr6lgpecjyqrmaz3
2012-05-23 14:53:54 +02:00
Olivier Dony
27d7bf17e8
[FIX] tools.cache: typo preventing caching when @skiparg!=2
...
lp bug: https://launchpad.net/bugs/988743 fixed
bzr revid: odo@openerp.com-20120522162730-k9514eosjo8w0r1i
2012-05-22 18:27:30 +02:00
Christophe Simonis
14c5ecc056
[FIX] correct default values from yaml import
...
bzr revid: chs@openerp.com-20120521135556-xa1jifioz3boxhqt
2012-05-21 15:55:56 +02:00
Divyesh Makwana (Open ERP)
9fbdc7c526
[IMP] Improved the typos.
...
bzr revid: mdi@tinyerp.com-20120423102313-0mboqhctzoje5ize
2012-04-23 15:53:13 +05:30
Olivier Dony
208b5aef5d
[FIX] config: log-handler option was not working if defined in config file
...
It is now possible to define the log-handler in the config
file. It should be done in the same manner as the addons_path,
i.e. a comma-separated list of strings.
There is no need to pass the default :INFO handler, as this
will be automatically added by the system.
As an example, you can have:
log_handler = werkzeug:CRITICAL,openerp.netsvc.rpc.response:DEBUG
bzr revid: odo@openerp.com-20120423122407-aexnby6166wjv34h
2012-04-23 14:24:07 +02:00
Vo Minh Thu
634a1090e0
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120323111750-jwvm1m533x2qc25t
2012-03-23 12:17:50 +01:00
Sbh (Openerp)
7d9cab896e
[MERGE] Merge with lp:openobject-server
...
bzr revid: sbh@tinyerp.com-20120323064037-belgc637ugambnnw
2012-03-23 12:10:37 +05:30
Olivier Dony
975c65860f
[MERGE] Latest bugfixes from 6.1
...
bzr revid: odo@openerp.com-20120322150506-vo7r1k65phlotaa2
2012-03-22 16:05:06 +01:00
Olivier Dony
fb12f0d522
[FIX] Avoid endless loops when processing graphs for diagram view
...
lp bug: https://launchpad.net/bugs/932830 fixed
bzr revid: odo@openerp.com-20120316160731-k6gmfsti3g38t1qr
2012-03-16 17:07:31 +01:00
Quentin (OpenERP)
3f9ce80a7d
[MERGE] merge with main server trunk
...
bzr revid: qdp-launchpad@openerp.com-20120316125320-6ua2vcsajlsxsr1p
2012-03-16 13:53:20 +01:00
Olivier Dony
638a9102c5
[MERGE] Latest fixes from 6.1
...
bzr revid: odo@openerp.com-20120314142043-9jpk3dkss1hkvb3q
2012-03-14 15:20:43 +01:00
Christophe Simonis
91b8829050
[FIX] tools.email_send: use correct kwarg
...
bzr revid: chs@openerp.com-20120306173319-6tmhco83w0we5hl6
2012-03-06 18:33:19 +01:00
Bhumika (OpenERP)
54a39bc87d
[MERGE] Merge with lp:openobject-server
...
bzr revid: sbh@tinyerp.com-20120306083420-r2br7skl91w78ueo
2012-03-06 14:04:20 +05:30
Vo Minh Thu
43b8317657
[MERGE] merged 6.1.
...
bzr revid: vmt@openerp.com-20120305163730-tkva77i5hhdy9jd1
2012-03-05 17:37:30 +01:00
Vo Minh Thu
d2b5a20182
[FIX] tests: mistakenly removed a self argument.
...
bzr revid: vmt@openerp.com-20120302123535-jxsf49wr4at1ylhh
2012-03-02 13:35:35 +01:00
Vo Minh Thu
0cb86fc58d
[IMP] tests: removed the severity concept from `assert` tags.
...
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02 12:28:34 +01:00
Vo Minh Thu
dc34d73695
[IMP] tests:
...
- pass around the assertion_report to the YAML importer
- removed TestReport, which was identical to assertion_report
- assertion_report is simpler (no more severity level)
- use the report to log a greppable sentence when some test failed.
Previously the runbot had to grep for a Traceback which was an
unreliable technique (e.g. an exception can be purposefuly
generated as part of a test and the associated traceback
visible in the logs). Now it can grep
"At least one test failed when loading the modules".
bzr revid: vmt@openerp.com-20120302110227-nqrl7i46ju28ntdr
2012-03-02 12:02:27 +01:00
Vo Minh Thu
6323111950
[IMP] tests:
...
- moved a few YAML tests to unittest2 for demonstration purpose
- changed --test-disable to --test-enable (and swapped its meaning)
bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01 14:46:08 +01:00
Olivier Dony
3e61e9d497
[FIX] drop_view_if_exists: simpler and CASCADING implementation for pg 8.3+
...
OpenERP depends on PostgreSQL 8.3 so we can now
use 'IF EXISTS'. It's also necessary to 'CASCADE'
the drop, otherwise depending views will prevent
the deletion and thus update of the view.
Depending views will automatically be updated
later and thus re-created, so this is safe.
bzr revid: odo@openerp.com-20120227165737-z5fgb6fle9g0cylw
2012-02-27 17:57:37 +01:00
Xavier Morel
18d38fb5ee
[IMP] document tools.misc.scan_languages, make its implementation less retarded
...
bzr revid: xmo@openerp.com-20120223103207-ra1a0dzcyoe745cx
2012-02-23 11:32:07 +01:00
Xavier Morel
2332c23c30
[IMP] replaces tools.misc.get_languages by the static dictionary it returns, rename that dict to ALL_LANGUAGES for clarity
...
bzr revid: xmo@openerp.com-20120223103045-a44cl5kdkrnehc66
2012-02-23 11:30:45 +01:00
Cécile Tonglet
4a87cc055d
[FIX] infinte loops in tools.graph
...
lp bug: https://launchpad.net/bugs/932830 fixed
bzr revid: cto@openerp.com-20120222151653-ucftpis7zh9kman5
2012-02-22 16:16:53 +01:00
Cécile Tonglet
3490275dc0
[REF] Clean up of tools.graph
...
bzr revid: cto@openerp.com-20120222114009-nyalbc7uyelf54f0
2012-02-22 12:40:09 +01:00
Kuldeep Joshi (OpenERP)
93960634c1
[IMP] res_partner:add res_partner_address field to res_partner
...
bzr revid: kjo@tinyerp.com-20120220091705-y7xdh00sdkotpqj6
2012-02-20 14:47:05 +05:30
Olivier Dony
79ac080fb2
[MERGE] Minor bugfixes (missing imports, etc.) courtesy of Florent Xicluna
...
bzr revid: odo@openerp.com-20120214150022-yx6zi0j4fr2d48uc
2012-02-14 16:00:22 +01:00
Olivier Dony
7deee635b2
[MERGE] Make <report> tag extensible for extra report engines, courtesy of Nicolas Bessi (Camptocamp)
...
The processing of <report> tags during XML file
processing is not modular or extensible, which
means that extra reporting engines cannot easily
add custom behavior for <report> records of their
type. By returning the newly created ID in
the tag_report() method we at least allow them
to hook up a monkey-patch without need to copy-
paste the original code.
This patch also allows an extra XML attribute
for webkit headers, because the original @header
attribute is reserved for a boolean value.
bzr revid: odo@openerp.com-20120214135255-a7hyxsoif4jhg6ro
2012-02-14 14:52:55 +01:00
Vo Minh Thu
0ae195798b
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120213111233-ontycsea5cpnvsgv
2012-02-13 12:12:33 +01:00
Bogdan Stanciu
d52e838455
[IMP] some English corrections & 'encoding' into 'coding' for several py files. No code change.
...
bzr revid: bogdanovidiu.stanciu@gmail.com-20120212114509-yrw86zewyv70dow7
2012-02-12 12:45:09 +01:00
Vo Minh Thu
1c6af53988
[MERGE]merged trunk.
...
bzr revid: vmt@openerp.com-20120210144114-rm4mt9x3uyekinto
2012-02-10 15:41:14 +01:00
Antony Lesuisse
a1e5c645d9
postgres use postgres instead of template1 and template1 instead of template0
...
bzr revid: al@openerp.com-20120209213317-3tt4o0sj87764ocn
2012-02-09 22:33:17 +01:00
Florent Xicluna
9769884ca5
[MERGE] file_open: give precedence to directory before zip.
...
bzr revid: florent.xicluna@gmail.com-20120208222801-p2gfhmsnptujdfru
2012-02-08 23:28:01 +01:00
Olivier Dony
69a5eca5b4
[IMP] Give precedence to module directories instead of zips while locating resources
...
The previous behavior gave the precedence to zipped
modules, without any apparent reason, and this is
sub-optimal for several reasons:
1. The default is to have regular modules, not
zipped modules, so looking first for a regular
module is more efficient.
2. Keeping a zipped module next to a regular
module with the same name is not a documented
or supported feature.
3. Even if you were relying on this behavior
having the extracted module take precedence
is more practical: you could simply extract
the zipped module to test a quick fix.
We have another issue related to this feature
because the code looking for zipped modules
escapes the addons paths chroot and goes
up to the filesystem root looking for a zip
module at each step. This is described in
bug 928376 and a fix for it should follow.
lp bug: https://launchpad.net/bugs/928376 fixed
bzr revid: odo@openerp.com-20120208173932-pwhz53vxxdzbo8ja
2012-02-08 18:39:32 +01:00
Florent Xicluna
5056899093
[MERGE] merged trunk.
...
bzr revid: florent.xicluna@gmail.com-20120208172825-r6og0hfoc181pdt1
2012-02-08 18:28:25 +01:00
Florent Xicluna
44e02f756b
[FIX] file_open should not search zip files outside its root directory. Fix the returned value with pathinfo=True.
...
lp bug: https://launchpad.net/bugs/928507 fixed
lp bug: https://launchpad.net/bugs/928376 fixed
bzr revid: florent.xicluna@gmail.com-20120208153304-9443zx2z09bws10x
2012-02-08 16:33:04 +01:00
Vo Minh Thu
589c12ada0
[IMP] gunicorn: moved database signaling to RegistryManager.
...
bzr revid: vmt@openerp.com-20120208142834-52oxaq72gghj687h
2012-02-08 15:28:34 +01:00
Vo Minh Thu
09dc03a30f
[IMP] logging: re-added the --log-level option for backward compatibility.
...
bzr revid: vmt@openerp.com-20120206230215-pst29d6x0ymn2fwx
2012-02-07 00:02:15 +01:00
Vo Minh Thu
229ab5cfa4
[REVERT] reverted commit 4008, the --log-rpc-terse/verbose were not effective.
...
bzr revid: vmt@openerp.com-20120206221420-p64z6nzch7f3f4v2
2012-02-06 23:14:20 +01:00
Vo Minh Thu
23eb63f139
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120206203151-3snkz7usngwtv1xt
2012-02-06 21:31:51 +01:00
Antony Lesuisse
fcf84b265c
define a useful default logging config, display this config in DEBUG, rename and claen rpc debug to verbose or terse
...
bzr revid: al@openerp.com-20120202203008-mkafq1oak33z6p6p
2012-02-02 21:30:08 +01:00
Olivier Dony
aea1b13412
[IMP] tools.translate: be more lenient and accept standart gettext source annotations
...
The GetText spec says that PO auto-comments indicating
the source location have this form:
#: /path/to/file:lineno
However OpenERP's POT export system defaults to a modified
version of this format with an extra 'type' field:
#: type:/path/to/file:lineno
The babel extractors we use for openerp-web's translations
have the GetText format hardcoded, so it's a good idea
to be more lenient and allow the standards annotations too.
We can use a default 'code' type for such cases.
For openerp-web translations the type does not matter,
as the translations will be directly loaded by the
web engine from the PO files and served in Javascript
to the browser, with no typing needed.
This patch simply avoids failing to parse updated PO files
that will contain standard GetText annotations for the
openerp-web related terms.
bzr revid: odo@openerp.com-20120202143210-05p1w24t6u77cyv8
2012-02-02 15:32:10 +01:00
Vo Minh Thu
88d2e96317
[IMP] --log-rpc-xxx into --log-request and --log-response.
...
bzr revid: vmt@openerp.com-20120202122610-r35cxp2y5i63lczg
2012-02-02 13:26:10 +01:00
Antony Lesuisse
91ef8c1c51
[FIX] review according to xmo :)
...
bzr revid: al@openerp.com-20120201235604-tr5iq676pzk8bi1m
2012-02-02 00:56:04 +01:00
Christophe Simonis
faa2d4f948
[ADD] option allowing to run openerp behind a reverse proxy
...
bzr revid: chs@openerp.com-20120201102838-reg50dmbfyzdgoeq
2012-02-01 11:28:38 +01:00
Antony Lesuisse
62750454e2
bye bye DEBUG_*
...
bzr revid: al@openerp.com-20120201003015-pct8p0fgixun3zvv
2012-02-01 01:30:15 +01:00
Antony Lesuisse
5a076878af
new logging handler and commandline config, mostly work except the filter on the root logger
...
bzr revid: al@openerp.com-20120201001019-7fol09su31gbn69w
2012-02-01 01:10:19 +01:00
Xavier Morel
5c40627e4b
[FIX] don't just print a warning if an @eval fails in an XML file
...
bzr revid: xmo@openerp.com-20120126133013-5fnsouix8cutwlik
2012-01-26 14:30:13 +01:00
Vo Minh Thu
283304f9a2
[IMP] warnings: turn warnings.warn into logging.warning:
...
Warnings are handled with the other logs (and not always sent to stderr),
they also appear under a module __name__ channel instead of py.warn.
The disadvantage is that there is no longer specific warnings,
such as pending deprecation warning or deprecation warning.
bzr revid: vmt@openerp.com-20120125132407-u33idc0qh7ecs1i5
2012-01-25 14:24:07 +01:00
Vo Minh Thu
f057f2afa5
[IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger().
...
bzr revid: vmt@openerp.com-20120124173017-c66z3kq11wmbrrke
2012-01-24 18:30:17 +01:00
Vo Minh Thu
a142292f91
[IMP] openerp.tools: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124140056-hqoy49bh7wyr1xce
2012-01-24 15:00:56 +01:00
Vo Minh Thu
09347af434
[IMP] gunicorn: moved gunicorn hook to openerp.wsgi (just like previous hooks), added new command-line options.
...
bzr revid: vmt@openerp.com-20120120150050-3o3hg6k1n17alup0
2012-01-20 16:00:50 +01:00
Florent Xicluna
fd9bb5a136
[FIX] tools.misc: NameError during exception handling.
...
bzr revid: florent.xicluna@gmail.com-20120119220041-w0o5q6cusz9zfnt2
2012-01-19 23:00:41 +01:00
Florent Xicluna
f65509f1ce
[FIX] AttributeError, 'module' has no attribute 'ext_eval'
...
bzr revid: florent.xicluna@gmail.com-20120119215553-qlb4992c37vi6cuh
2012-01-19 22:55:53 +01:00
nicolas.bessi@camptocamp.com
dcc993443a
[IMP] webkit_header attribute support in report tag
...
bzr revid: nicolas.bessi@camptocamp.com-20120119154448-59md8t416xrlpvx1
2012-01-19 16:44:48 +01:00
nicolas.bessi@camptocamp.com
d87ee3e162
[IMP] webkit_header attribute support in report tag
...
bzr revid: nicolas.bessi@camptocamp.com-20120119152732-dbn48789auu009r4
2012-01-19 16:27:32 +01:00
Vo Minh Thu
418739cf3e
[MERGE] cleaned some imports, removed some code for older python versions.
...
bzr revid: vmt@openerp.com-20120118160305-ucennaoqehjuut1z
2012-01-18 17:03:05 +01:00
Vo Minh Thu
5b57b7c5a9
[MERGE] added --db-template option.
...
bzr revid: vmt@openerp.com-20120118145334-sa190ihcos9iflcu
2012-01-18 15:53:34 +01:00
Vo Minh Thu
c7094ab49f
[IMP] tools: removed our copy of the copy module.
...
bzr revid: vmt@openerp.com-20120118115743-ce6p993l8v2kqlux
2012-01-18 12:57:43 +01:00
Vo Minh Thu
a236a3ac75
[IMP] tools: removed deprecated debug() function.
...
bzr revid: vmt@openerp.com-20120118114910-xrynwguzu0e5zsng
2012-01-18 12:49:10 +01:00
Vo Minh Thu
8c3daeea12
[IMP] tools: removed __builtin__.{all,any} (they were there for previous python versions).
...
bzr revid: vmt@openerp.com-20120118114640-sm71f9fi48n4qn3q
2012-01-18 12:46:40 +01:00
Vo Minh Thu
b5caa70b83
[IMP] tools: removed some functools functions (they were there for previous python versions).
...
bzr revid: vmt@openerp.com-20120118114109-txh1cjv503xautty
2012-01-18 12:41:09 +01:00
Vo Minh Thu
4d77130107
[IMP] tools: removed literal_eval as we drop python 2.6 support.
...
bzr revid: vmt@openerp.com-20120118112400-n7uulbbwm7wr5lpu
2012-01-18 12:24:00 +01:00
nicolas.bessi@camptocamp.com
8d826cc07d
[IMP] database template in commande line, you can now use --db_template=my_template, default is template0
...
bzr revid: nicolas.bessi@camptocamp.com-20120117164940-i3g1zcu49x0g60t5
2012-01-17 17:49:40 +01:00
Vo Minh Thu
0ed4377cf8
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120112155027-u3bagec0g9fqr0yi
bzr revid: vmt@openerp.com-20120116110434-ckhp01ze83cwm32y
2012-01-16 12:04:34 +01:00
Olivier Dony
356e4ed9bd
[FIX] translation: remove calls to trans_update_res_ids
...
Calling this method is no longer required since the
merge of the new code for loading translations using
a temporary table. The method itself has been removed
at revision 3919, so all calls to it should have been
cleaned up as well.
Rev.3919 = rco@openerp.com-20111223104824-fup1cjbjni1fsty1
bzr revid: odo@openerp.com-20120109140958-10i1ti16tw327580
2012-01-09 15:09:58 +01:00
Vo Minh Thu
f24a29717e
[FIX] orm: correctly set the module name on the model, even when imported with
...
`import openerp.modules.<module_name>`.
bzr revid: vmt@openerp.com-20120109101647-4hvy3n6eifzeozzq
2012-01-09 11:16:47 +01:00
Vo Minh Thu
b71c0095c9
[MERGE] tools.translate: use misc.file_open() to load .po files even from .zip files.
...
bzr revid: vmt@openerp.com-20120104103212-qq2ad04b1ffydrur
2012-01-04 11:32:12 +01:00
Raphael Collet
487a82ccf9
[MERGE] config: fix missing section name when saving config file
...
bzr revid: rco@openerp.com-20111223152211-xkqojrv22vkfwhht
2011-12-23 16:22:11 +01:00
Raphael Collet
5096fb5003
[MERGE] yaml_import: fix usage of attribute 'id' in tag !delete
...
bzr revid: rco@openerp.com-20111223141754-5o7tb680oruk76a6
2011-12-23 15:17:54 +01:00
Raphael Collet
2661edacda
[MERGE] translations: import using lower-level sql (translations load about 6 times faster)
...
bzr revid: rco@openerp.com-20111223104824-fup1cjbjni1fsty1
2011-12-23 11:48:24 +01:00
Vo Minh Thu
6bb854b893
[MERGE] merged the new floats rounding code.
...
bzr revid: vmt@openerp.com-20111222111551-3np72b3u6qt8lkeo
2011-12-22 12:15:51 +01:00
Olivier Dony
0eb2986e15
[IMP] safe_eval: allow INPLACE* operator opcodes as introduced in PEP-203
...
bzr revid: odo@openerp.com-20111222101106-h3qbhx53hyhyjor5
2011-12-22 11:11:06 +01:00
Olivier Dony
68e03147ff
[MERGE] latest trunk
...
bzr revid: odo@openerp.com-20111220235717-845hp2z5g8yglw1w
2011-12-21 00:57:17 +01:00
Olivier Dony
759ccd9845
[IMP] float_utils: simplified code, added float_repr
...
lp bug: https://launchpad.net/bugs/882036 fixed
bzr revid: odo@openerp.com-20111220234740-kotcgoz3opcbkx4b
2011-12-21 00:47:40 +01:00
Antony Lesuisse
aa9f466119
[FIX] config blacklist stop_after_init
...
bzr revid: al@openerp.com-20111220164554-ygdxgz6zpecf7geh
2011-12-20 17:45:54 +01:00
Olivier Dony
ed53ef4761
[IMP] float_utils: fix HALF_UP rounding according to discussions on bug 882036
...
Also improved test and added warning logging when
crossing the precision limit due to too many
significant digits. There is apparently a limitation
in Python's float implementation for this.
bzr revid: odo@openerp.com-20111220163420-lz0sh1h0yjkh6jdc
2011-12-20 17:34:20 +01:00
Olivier Dony
dcd1c1daff
[IMP] float_utils: better variable names, explain /epsilon/ usage
...
bzr revid: odo@openerp.com-20111219105718-0jbz01rirl0s64ca
2011-12-19 11:57:18 +01:00
Rucha (Open ERP)
afb2735412
[MERGE]: Merge with latest trunk-server
...
bzr revid: rpa@tinyerp.com-20111219062214-1md1y0k594ygzqx5
2011-12-19 11:52:14 +05:30
Olivier Dony
9ddd05fb3a
[REF] float_utils: moved in its own python module
...
bzr revid: odo@openerp.com-20111216160426-gya8d1d1zymcz8os
2011-12-16 17:04:26 +01:00
Olivier Dony
6add700d7a
[MERGE] latest trunk
...
bzr revid: odo@openerp.com-20111216155624-3nvdsaurjsdo44mx
2011-12-16 16:56:24 +01:00
Olivier Dony
295cd51e38
[MERGE] Fix bug 901601, add default GTK icon for kanban/gantt actions
...
bzr revid: odo@openerp.com-20111213120225-o264d1wgwgz4ztvt
2011-12-13 13:02:25 +01:00
Naresh (OpenERP)
e7f3e590b7
[REF]:
...
bzr revid: nch@tinyerp.com-20111213105146-fz6fejswta7mzfcp
2011-12-13 16:21:46 +05:30
Naresh (OpenERP)
978299a26c
[IMP]:added default icon for kanban and gantt view
...
lp bug: https://launchpad.net/bugs/901601 fixed
bzr revid: nch@tinyerp.com-20111209111336-8sqgc9z9ska1yer8
2011-12-09 16:43:36 +05:30
Vo Minh Thu
842cb1ad41
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20111201153214-0iintvpp7crnr2jc
2011-12-01 16:32:14 +01:00
Naresh (OpenERP)
f211942d6a
[FIX]:loading translation of .zip module
...
lp bug: https://launchpad.net/bugs/885134 fixed
bzr revid: nch@tinyerp.com-20111130085452-vcrxnv86avhfihom
2011-11-30 14:24:52 +05:30
Naresh (OpenERP)
f47e32d437
[FIX]:initialise the parser before adding user defined sections to parser
...
lp bug: https://launchpad.net/bugs/822836 fixed
bzr revid: nch@tinyerp.com-20111128111430-cki6c7dkthq8ynug
2011-11-28 16:44:30 +05:30
Olivier Dony
f31c1d85d8
[MERGE] Missing modelines, requested and provided by Lionel Sausin (Numerigraphe)
...
bzr revid: odo@openerp.com-20111124161521-512vn56w3c4e303c
2011-11-24 17:15:21 +01:00
Olivier Dony
aa6b926e74
[MERGE] YAML: Support m2o None value, courtesy of Dmitrijs Ledkovs (credativ)
...
bzr revid: odo@openerp.com-20111124153233-4vpb6k1c3ksllsfd
2011-11-24 16:32:33 +01:00
Numerigraphe - Lionel Sausin
a2f4f2669b
[IMP] Added missing vim mode lines
...
lp bug: https://launchpad.net/bugs/524279 fixed
bzr revid: ls@numerigraphe.fr-20111122085848-1atcrcw8e64altcp
2011-11-22 09:58:48 +01:00
Vo Minh Thu
5ef9dd5f3f
[MERGE] Cleaning of the empty dict kwargs (replaced by None).
...
bzr revid: vmt@openerp.com-20111121133346-2yr8ow3zeyqa9ar5
2011-11-21 14:33:46 +01:00
Rucha (Open ERP)
d4ad054000
[MERGE]: Merge with latest trunk-server
...
bzr revid: rpa@tinyerp.com-20111103071744-wkf0qgr8qkl540y7
bzr revid: rpa@tinyerp.com-20111116051225-w9b73w63w8g6z2hk
2011-11-16 10:42:25 +05:30
Rucha (Open ERP)
aa10c5eb60
[MERGE]: Merge with latest trunk-server
...
bzr revid: rpa@tinyerp.com-20111116051110-jtb3437w8vu3qhph
2011-11-16 10:41:10 +05:30
Olivier Dony
ba2b2bdae1
[IMP] tools.float_*: more tests with negative values, some cleanup
...
bzr revid: odo@openerp.com-20111115113605-l5e6gg675qbrvjz6
2011-11-15 12:36:05 +01:00
Fabien Pinckaers
0b84257015
[IMP] remove print statement
...
bzr revid: fp@tinyerp.com-20111115002847-vz2y1q2d852mz6a6
2011-11-15 01:28:47 +01:00
Fabien Pinckaers
b859fbd8c6
[IMP] removed print statement
...
bzr revid: fp@tinyerp.com-20111115001426-bpct1qa3xysjv3cq
2011-11-15 01:14:26 +01:00
Fabien Pinckaers
a40c6ac9a8
[FIX] onchange
...
bzr revid: fp@tinyerp.com-20111114232422-4rgrmipbr7b4x7j0
2011-11-15 00:24:22 +01:00
Fabien Pinckaers
2235425822
[FIX] onchange yaml
...
bzr revid: fp@tinyerp.com-20111114224224-5kvzufap638l7nx1
2011-11-14 23:42:24 +01:00
Fabien Pinckaers
99c26a209f
[FIX] onchange computation on YAML
...
bzr revid: fp@tinyerp.com-20111114221954-urk25d05y65by96n
2011-11-14 23:19:54 +01:00
Fabien Pinckaers
8d7176a11e
[IMP] Yaml scripts calls on_changes and fields_view_get by defaults
...
Very big change, this may emphasize some of the troubles, runbot can become red
until we fix them all.
bzr revid: fp@tinyerp.com-20111114212627-5kdjxkws1lqm0c38
2011-11-14 22:26:27 +01:00
Olivier Dony
ffe640cece
[IMP] tools.float_*: added tests and docstrings
...
bzr revid: odo@openerp.com-20111114182310-kkzh78uej0uuwhaz
2011-11-14 19:23:10 +01:00
Olivier Dony
dcb5ff6eac
[IMP] res.currency,base: factor out float rounding methods in tools to allow use without currency
...
Pending: addition of tests
bzr revid: odo@openerp.com-20111114163617-kw7u8rxcie7m2hj5
2011-11-14 17:36:17 +01:00
Denis Seleznyov
58bb4fadad
[FIX]:AccessInit: hash collision error possible
...
lp bug: https://launchpad.net/bugs/859123 fixed
bzr revid: nch@tinyerp.com-20111114064805-wkw8q4w0nj5h1dtd
2011-11-14 12:18:05 +05:30
Fabien Pinckaers
1c2ab2927d
unusedcode
...
bzr revid: fp@tinyerp.com-20111114001216-etl5g0dl3ya1xfvs
2011-11-14 01:12:16 +01:00
Fabien Pinckaers
954bcd7976
fix
...
bzr revid: fp@tinyerp.com-20111113230904-vmrxwahfbwub50sf
2011-11-14 00:09:04 +01:00
Fabien Pinckaers
aefa8b8c65
[IMP] Allows to put a view argument in a YAML record and OpenERP will
...
call all the on_change and default_get correctly. This increases
a lot the coverage and reduce lines of test to develop.
Put the XML_ID of the view of False so that OpenERP will find the
first form view itself.
Example to create a PO with all on_change:
!record {model: purchase.order, id: purchase_new, view: False}:
partner_id: base.res_partner_asus
order_line:
- product_id: product.product_product_pc1
product_qty: 5.0
bzr revid: fp@tinyerp.com-20111113223056-g65pf5vzg7dwkks1
2011-11-13 23:30:56 +01:00
Numerigraphe - Lionel Sausin
4651cf935e
[FIX] unmutable defaults in safe_eval
...
bzr revid: ls@numerigraphe.fr-20111107152640-t28rgkfs05jwduab
2011-11-07 16:26:40 +01:00
Rucha (Open ERP)
792023dbce
[FIX]: yaml: In !delete tag if we provide id of record to be deleted instead of search, it was raising error as node.search is None and we cannot use len()
...
bzr revid: rpa@tinyerp.com-20111102124614-4q5stzqxwfbayclj
2011-11-02 18:16:14 +05:30
Dmitrijs Ledkovs
d0f70e9b29
[IMP] allow to unset fields in yaml import
...
lp bug: https://launchpad.net/bugs/873456 fixed
bzr revid: dmitrijs.ledkovs@credativ.co.uk-20111013162021-225j5kl25bg9su3a
2011-10-13 17:20:21 +01:00
Rucha (Open ERP)
fc8498ea9c
[FIX]: Fixed problem of context not passed properly in creating record by !record tag of yml with context.
...
bzr revid: rpa@tinyerp.com-20111012063145-6feojywf8a7jo91m
2011-10-12 12:01:45 +05:30
Olivier Dony
0c9e9a7643
[IMP] rng,convert: add support for report `usage` attribute
...
The `usage` attribute may indicate a special purpose
of this report. For instance, the "default" usage
is used to identify the report to include along with
a record for EDI exports.
bzr revid: odo@openerp.com-20111010142226-ceradf4acsbr3r5l
2011-10-10 16:22:26 +02:00
Vo Minh Thu
ec3ea4197e
[FIX] tools.translate: release.support_email has been removed, so we no longer set the Report-Msgid-Bugs-To value in .po files.
...
lp bug: https://launchpad.net/bugs/873959 fixed
bzr revid: vmt@openerp.com-20111014150210-qs7n58cocvnjputl
2011-10-14 17:02:10 +02:00
Christophe Simonis
952e4cf602
[IMP] command line: move the option "addons-path" to the right group
...
bzr revid: chs@openerp.com-20111014093626-4ndm6kzgxd2idmjn
2011-10-14 11:36:26 +02:00
Olivier Dony
d13fb7fe7e
[MERGE] various bugfixes/improvements (coming from EDI development)
...
- _original_module is now available on model/browse_records
- context usage in res.partner.*
- proper name_search() + default values for res.currency
- active_model in wkf exec context
- safe_eval allows try/except/finally
- yaml_import: !ref {id: xml_id} works
- ir_mail_server: support for alternative body/subtype
- default value for web.base.url config parameter
- consistency rename: Model.*get_xml_id* -> *get_external_id*
bzr revid: odo@openerp.com-20111005100954-c8mbd4kz6kkqaj84
2011-10-05 12:09:54 +02:00
Olivier Dony
33947042fd
[IMP] safe_eval: allow OPCODES for try/except/finally
...
bzr revid: odo@openerp.com-20111005010136-xkowcqda3kres691
2011-10-05 03:01:36 +02:00
Olivier Dony
ea019d556f
[IMP] yaml_import: make !ref nodes work for m2o values
...
bzr revid: odo@openerp.com-20111003171302-n1quzvs2pjyn7xr6
2011-10-03 19:13:02 +02:00
Antony Lesuisse
f94a1d1d14
[IMP] config set --load default to web, this will be cleaned up by metaoptions
...
bzr revid: al@openerp.com-20111001131619-3r32vd8atr8ebego
2011-10-01 15:16:19 +02:00
Olivier Dony
e7601e68cb
[MERGE] sync with latest trunk
...
bzr revid: odo@openerp.com-20110928211326-0e51q7zlw4h2528z
2011-09-28 23:13:26 +02:00
Olivier Dony
209390d627
[MERGE] sync with latest trunk
...
bzr revid: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
2011-09-27 18:51:33 +02:00
Fabien Pinckaers
dee06af4b1
[FIX] YAML empty records
...
bzr revid: fp@tinyerp.com-20110925140802-gnyr92iepj73ceg0
2011-09-25 16:08:02 +02:00
Antony Lesuisse
404e545365
[FIX] revert 3651 al@openerp.com-20110925003322-yioqd1cdlffvr6uc http static is used by webdav
...
bzr revid: al@openerp.com-20110925012039-4hmqj2v5aaxxtxwy
2011-09-25 03:20:39 +02:00
Antony Lesuisse
d3b76ea7f1
[IMP] temporary web dbfilter before metaoptions
...
bzr revid: al@openerp.com-20110925005437-7jdgrzl7i4ihx44y
2011-09-25 02:54:37 +02:00
Antony Lesuisse
eda28246ee
[REM] http static crap (you may use web controllers or /static dir)
...
bzr revid: al@openerp.com-20110925003322-yioqd1cdlffvr6uc
2011-09-25 02:33:22 +02:00
Antony Lesuisse
7a88d9058d
[MERGE] trunk
...
bzr revid: al@openerp.com-20110924145258-16r9qi7hr3dip1jz
2011-09-24 16:52:58 +02:00
Olivier Dony
0d3085d14f
[MERGE] sync with latest trunk
...
bzr revid: odo@openerp.com-20110922154155-jq811w768d9zfgim
2011-09-22 17:41:55 +02:00
Olivier Dony
1edacff497
[MERGE] unaccent support + domain parsing cleanup/improvements
...
bzr revid: odo@openerp.com-20110922140856-p8q0ib1lirgv1g02
2011-09-22 16:08:56 +02:00
niv-openerp
e42256c478
[imp] switched the dates to UTC. I'm so happy.
...
bzr revid: nicolas.vanhoren@openerp.com-20110922095443-3pzaup9ryb2vb25m
2011-09-22 11:54:43 +02:00
Olivier Dony
6e4a93cd22
[MERGE] sync w/ latest trunk
...
bzr revid: odo@openerp.com-20110921162128-22sp59cn4xv983q5
2011-09-21 18:21:28 +02:00
Vo Minh Thu
46ad605226
[IMP] wsgi:
...
- added Microsoft specific header for webdav.
- serve WSGI handlers with werkzeug when available.
- effectively use WSGI instead of netsvc HTTP stack.
bzr revid: vmt@openerp.com-20110914104300-n0l3dnmdu3jau7w2
2011-09-14 12:43:00 +02:00
Olivier Dony
caef9821a3
[MERGE] latest trunk
...
bzr revid: odo@openerp.com-20110906080822-tyadkxvycrx7bl1d
2011-09-06 10:08:22 +02:00
Vo Minh Thu
8ca1a87201
[IMP] wsgi: modules can be pre-loaded and expose a WSGI handler.
...
An option --load is added to list the modules to pre-load.
sys.path and sys.modules are initialized when the config is
parsed.
bzr revid: vmt@openerp.com-20110902133136-4v7fgptyd0g1kc5s
2011-09-02 15:31:36 +02:00
Vo Minh Thu
b8a633e578
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110831091325-t5gfm57tmkr0fbee
2011-08-31 11:13:25 +02:00
Vo Minh Thu
bdd0c7cf3f
[IMP] simplified cache implementation (and stored on the osv), does not support contexts.
...
bzr revid: vmt@openerp.com-20110830121541-abov2wezdn6kl2dc
2011-08-30 14:15:41 +02:00
Antony Lesuisse
be328ad7c3
[MERGE] trunk
...
bzr revid: al@openerp.com-20110827213628-4kflylkgtln6o4k4
2011-08-27 23:36:28 +02:00
Vo Minh Thu
174e25e66f
[IMP] tools.cache: removed unused variable.
...
bzr revid: vmt@openerp.com-20110826121639-irm0g0eh5yec1c88
2011-08-26 14:16:39 +02:00
Antony Lesuisse
4be82ffd52
[FIX] remove debugging
...
bzr revid: al@openerp.com-20110824222330-zrfnr4qme71r9oqi
2011-08-25 00:23:30 +02:00
Antony Lesuisse
fd83621463
[MERGE] trunk
...
bzr revid: al@openerp.com-20110824160936-ej26wcvgvku3lkm7
2011-08-24 18:09:36 +02:00
Antony Lesuisse
b687cc3bb4
[FIX] remove unused clear function
...
bzr revid: al@openerp.com-20110824150122-ejryb7ni1l92d1hp
2011-08-24 17:01:22 +02:00
Vo Minh Thu
180ffb18a1
[REF] openerp-server: streamlining startup script.
...
bzr revid: vmt@openerp.com-20110823103343-rvy2zkre8bo9cq6g
2011-08-23 12:33:43 +02:00
Olivier Dony
fc4874e5f6
[IMP] tools.misc: update msg tracking id pattern: 'openobject'->'openerp'
...
bzr revid: odo@openerp.com-20110819141044-liat57ztdyydl5xm
2011-08-19 16:10:44 +02:00
Vo Minh Thu
51117db344
[REF] osv: replace isinstance(m,osv_memory) by m.is_transient().
...
bzr revid: vmt@openerp.com-20110816095755-2g5cblolcvchtewx
2011-08-16 11:57:55 +02:00
Vo Minh Thu
6251434cb9
[IMP] unaccent: support for the postgres unaccent contrib module.
...
OpenERP is now able to use the SQL unaccent() function when available,
and when the server is run with the --unaccent flag.
bzr revid: vmt@openerp.com-20110811110118-cyx2l6c3wk58083p
2011-08-11 13:01:18 +02:00
Olivier Dony
c90c1a735d
[MERGE] latest trunk
...
bzr revid: odo@openerp.com-20110809160953-i1yrg5knplw4jy9l
2011-08-09 18:09:53 +02:00
Vo Minh Thu
091e9989d5
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110809154337-5l5hbbhot347ci82
2011-08-09 17:43:37 +02:00
Vo Minh Thu
d803d9192b
[IMP] cron: the maximum number of cron threads is configurable.
...
bzr revid: vmt@openerp.com-20110808135453-qdlhkyupb6803jln
2011-08-08 15:54:53 +02:00
Tristan Hill
7e036f062e
[FIX] correct indentation
...
bzr revid: dmitrijs.ledkovs@credativ.co.uk-20110731134824-t2f3r6uxrw27ah45
2011-07-31 14:48:24 +01:00
Vo Minh Thu
266cad9a2e
[IMP] unaccent: added an unaccent command-line flag, and a function to test unaccent availability.
...
bzr revid: vmt@openerp.com-20110722081030-ltxuqknpe1arduw5
2011-07-22 10:10:30 +02:00
Olivier Dony
fb0c0e8d90
[IMP] safe_eval: allow 'max' builtin
...
bzr revid: odo@openerp.com-20110718145322-wid88kpg568xyxu7
2011-07-18 16:53:22 +02:00
Olivier Dony
6e3e3c3b8b
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20110715003655-vx3h5n4109hpa7i2
2011-07-15 02:36:55 +02:00
Olivier Dony
3080ba3452
[IMP] ir.mail_server: another round of cleanup
...
bzr revid: odo@openerp.com-20110715002809-ryvm27wi4ktv8v49
2011-07-15 02:28:09 +02:00
Vo Minh Thu
cadfd7d85f
[FIX] fields.property: typos/misnamed variables.
...
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Vo Minh Thu
2fe91df6ad
[IMP] fields.py: tidying up before merging in trunk.
...
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP)
dae911decc
[FIX] tools: get_and_sort_by_field function fixed and cleaned as asked in merge proposal
...
- fixed error of undefined variable set_field
- improved docstring to follow standard RST formatting
- renamed function into get_and_group_by_field to depict more precisely what it's doing
- created a specific function get_and_group_by_company to hide the complexity
bzr revid: qdp-launchpad@openerp.com-20110708132537-d7c4trk0nl5ngny0
2011-07-08 15:25:37 +02:00
Quentin (OpenERP)
242a9e9b05
[IMP] tools: added a function to get and sort by field
...
bzr revid: qdp-launchpad@openerp.com-20110707132614-c6letgrkz4d6vm0i
2011-07-07 15:26:14 +02:00
P. Christeas
7c8665bb69
[MERGE] docstrings improvements and preparation for api-doc structure
...
bzr revid: odo@openerp.com-20110701231956-93zu7xtibpo06eqm
2011-07-02 01:19:56 +02:00
P. Christeas
8cfb7dae73
API docs: docstrings, module titles
...
bzr revid: xrg@linux.gr-20110623090457-y5o7pd5y1ltpo9t9
2011-06-23 12:04:57 +03:00
P. Christeas
cf6e623f7d
API docs: settings file and titles at modules
...
bzr revid: xrg@linux.gr-20110623090357-nazly8vpfnw0iskr
2011-06-23 12:03:57 +03:00
P. Christeas
5aa5607913
tools.which: docstring fix
...
bzr revid: xrg@linux.gr-20110623090312-8kon0hgauxbrpace
2011-06-23 12:03:12 +03:00
P. Christeas
a3beae41e4
tools.graph: cleanup docstrings
...
bzr revid: xrg@linux.gr-20110623090311-ntqxz67t23n58igo
2011-06-23 12:03:11 +03:00
P. Christeas
803d5c4c78
tools.func: docstrings
...
bzr revid: xrg@linux.gr-20110623090311-dbez41ijva3lwri9
2011-06-23 12:03:11 +03:00
P. Christeas
732a395a4b
amount-to-text: docstrings
...
bzr revid: xrg@linux.gr-20110623090311-1w881l56hdl811y4
2011-06-23 12:03:11 +03:00
P. Christeas
b0f06f7e52
orm, tools, addons: Doc strings improvements
...
bzr revid: xrg@linux.gr-20110623090228-4gn6xoyykcvfhv13
2011-06-23 12:02:28 +03:00
Vo Minh Thu
0e6668a391
[MERGE] ir_model_data unlinking does not use _unlink anymore, clears caches.
...
bzr revid: vmt@openerp.com-20110622135344-i4u23z22binbq8h1
2011-06-22 15:53:44 +02:00
Olivier Dony
301497c543
[IMP] lint cleanup
...
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Olivier Dony
60cbf9bf14
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20110624102631-kiy8j2d1fc7heeco
2011-06-24 12:26:31 +02:00
Olivier Dony
4f6bee5bf7
[MERGE] latest trunk
...
bzr revid: odo@openerp.com-20110617170517-pvhf772lewqk3z8c
2011-06-17 19:05:17 +02:00
Olivier Dony
b867961cce
[ADD] tools.misc: UnquoteEvalContext, for funky domain/context eval
...
UnquoteEvalContext gives you an easy way to work with
domains/context that are passed as strings but need to
be altered, while keeping the unknown symbols/names
unmodified when converted back to string.
Looks weird but is sometimes needed, because much of
the context/domain only make sense on client-side
(one of the reasons they are passed as strings in the
first place). Look at the docstring for an example.
bzr revid: odo@openerp.com-20110617170215-u6gb7b5q684rmo51
2011-06-17 19:02:15 +02:00
Vo Minh Thu
e375049414
[REF] osv: moved osv_pool to modules/registry.
...
bzr revid: vmt@openerp.com-20110614142226-yd3y39a8z3ubwvxm
2011-06-14 16:22:26 +02:00
Quentin (OpenERP)
4432d6a9f2
[IMP] safe_eval: added min() in usable functions
...
bzr revid: qdp-launchpad@openerp.com-20110614082920-aokyfw4iizj0fte5
2011-06-14 10:29:20 +02:00
P. Christeas
f1558730f6
ir.translation, import: push the algo. to SQL, improve performance
...
At a language import (translation files), we want to push a big batch of
translation records into the database. These will need update-or-insert
logic (against existing ones) or even resolution of ir.model.data .
Doing this loop in Python had been slow (invoking 2x read()s, +1 for
ir.model.data, 1 insert or update), triggered the cache (fill and clean
at each iteration).
Instead, follow the old-school db recipe for mass records insertion:
- create a temporary table w/o indexes or constraints
- quickly populate the temp with all records of the batch
(through a dedicated "cursor" object)
- process the table, doing lookups in collective SQL queries (yes, SQL
is all about loops of data processing, efficiently)
- insert all records from temp into ir.model.data
- call (implicitly) all constraints of ir.model.data at the end of that
single query.
This improves performance of translation imports by ~3x at least.
bzr revid: xrg@linux.gr-20110608162059-rfy1vvwp8w66ry0i
2011-06-08 19:20:59 +03:00
Antony Lesuisse
759c3bb6d6
[MERGE] trunk
...
bzr revid: al@openerp.com-20110608153139-zsf80dcs108dqzcy
2011-06-08 17:31:39 +02:00
Vo Minh Thu
2d1f8c93dd
[MERGE] ir_translation: lang field selection only displays installed languages.
...
bzr revid: vmt@openerp.com-20110608145033-67n0g3g28pw91c9l
2011-06-08 16:50:33 +02:00
P. Christeas
28e3960004
Revert "[IMP] translation: Added two columns to ir_translation to fix the res_ids after loading is done."
...
This reverts commit a78cd642cd956afe3f3cee54558b214549f0a9a5.
Conflicts:
openerp/addons/base/ir/ir_translation.py
openerp/tools/translate.py
bzr revid: xrg@linux.gr-20110608092941-f2ycamq0k52y4nc8
2011-06-08 12:29:41 +03:00
Antony Lesuisse
b5bf0e8c1c
[IMP] tools.cache cleanup, 15% speedup
...
bzr revid: al@openerp.com-20110608092515-gum2y4snkrcrpjqb
2011-06-08 11:25:15 +02:00
Antony Lesuisse
970b19b8b4
[IMP] new tools.cache cleaner, 10% speedup and more to come...
...
bzr revid: al@openerp.com-20110608030330-d0dsv2k6n0w3lyd5
2011-06-08 05:03:30 +02:00
P. Christeas
a2557925b6
yaml_import: fix ambiguous syntax at end of report
...
When finishing a YAML import, the syntax ["str %d" % int + int] turns
out to be ambiguous and is resolved as [ ("str %d" % int) + int],
leading to a:
TypeError: cannot concatenate 'str' and 'int' objects
This had been first fixed in commit f46966e044d18a644 (2010-06-30)
(cherry picked from commit cc0c584e5dfbf672d51f61e7207047f357e31471)
bzr revid: xrg@linux.gr-20110605135116-ie2h7gnvnx2kpdoy
2011-06-05 16:51:16 +03:00
Antony Lesuisse
6aa240ca19
[IMP] ir_translation only display installed lang, 10% speedup in translation loading
...
bzr revid: al@openerp.com-20110601163455-2o732ssum24kwshu
2011-06-01 18:34:55 +02:00
Vo Minh Thu
b681b0ec75
[ADD] tools/config: started tests.
...
bzr revid: vmt@openerp.com-20110601115055-idoid8p0pnkfci38
2011-06-01 13:50:55 +02:00
Vo Minh Thu
6d1753a734
[FIX] tools/config: properly cast config file values.
...
bzr revid: vmt@openerp.com-20110601074400-hv1jrgoqw2ji0yah
2011-06-01 09:44:00 +02:00