Xavier Morel [Fri, 26 Nov 2010 12:50:02 +0000 (13:50 +0100)]
[ADD] base_tools: base module for all tools to create and add web icons only once for the Tools application
Make various tools modules depend on base_tools
bzr revid: xmo@openerp.com-
20101126125002-uhbwkt2yf6sydf09
Xavier Morel [Fri, 26 Nov 2010 12:19:32 +0000 (13:19 +0100)]
[ADD] stock: web icon for the warehouse application
bzr revid: xmo@openerp.com-
20101126121932-dif5r8i3gi9iomf1
Xavier Morel [Fri, 26 Nov 2010 12:11:55 +0000 (13:11 +0100)]
[ADD] purchase: web_icon for purchases application
bzr revid: xmo@openerp.com-
20101126121155-zh0lfpf07iufw5ci
Xavier Morel [Fri, 26 Nov 2010 12:07:07 +0000 (13:07 +0100)]
[ADD] project: web_icon for project application
bzr revid: xmo@openerp.com-
20101126120707-1puyaqs0mssw2gob
Xavier Morel [Fri, 26 Nov 2010 12:02:38 +0000 (13:02 +0100)]
[ADD] point_of_sale: web_icon for point of sale application
bzr revid: xmo@openerp.com-
20101126120238-r2b35onq8ovyo9z1
Xavier Morel [Fri, 26 Nov 2010 11:56:57 +0000 (12:56 +0100)]
[ADD] mrp: web_icon for manufacturing application
bzr revid: xmo@openerp.com-
20101126115657-58fy1dnvsofli3mh
Xavier Morel [Fri, 26 Nov 2010 11:56:25 +0000 (12:56 +0100)]
[ADD] knowlege: web_icon for knowledge application
bzr revid: xmo@openerp.com-
20101126115625-glhqgqe7fj092c24
Xavier Morel [Fri, 26 Nov 2010 11:43:42 +0000 (12:43 +0100)]
[ADD] hr: web_icon for human resources application
bzr revid: xmo@openerp.com-
20101126114342-74fivsmdkw8mvihj
Xavier Morel [Fri, 26 Nov 2010 11:18:00 +0000 (12:18 +0100)]
[ADD] account: web_icon for accounting application
bzr revid: xmo@openerp.com-
20101126111800-yj2fw0aq09plm64p
Launchpad Translations on behalf of openerp [Fri, 26 Nov 2010 04:54:39 +0000 (04:54 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101126044921-9446pqhg2fetkj9v
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101126045439-w5rxmd2f3eukcno6
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 18:14:26 +0000 (19:14 +0100)]
[MERGE] merged the report server branch
bzr revid: qdp-launchpad@tinyerp.com-
20101125181426-dk8asryszl0mqytu
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 18:07:16 +0000 (19:07 +0100)]
[MERGE] merged the report branch
bzr revid: qdp-launchpad@tinyerp.com-
20101125180716-eq2e52ab4qdq1161
P. Christeas, O. Dony [Thu, 25 Nov 2010 17:53:28 +0000 (18:53 +0100)]
[MERGE] many improvements regarding translations, logging, reports, http, speed, ...
bzr revid: odo@openerp.com-
20101125175328-pmu07gj694r5n2es
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 17:46:55 +0000 (18:46 +0100)]
[IMP] account: report 'Journals' improved
bzr revid: qdp-launchpad@tinyerp.com-
20101125174655-qzlp9m3qe4oybnrl
Olivier Dony [Thu, 25 Nov 2010 17:22:36 +0000 (18:22 +0100)]
[IMP] tools.translate: more lenient with malformed PO entries
bzr revid: odo@openerp.com-
20101125172236-son3382958xbds8y
Olivier Dony [Thu, 25 Nov 2010 17:21:44 +0000 (18:21 +0100)]
[IMP] tools.translate: use consistent logging API
bzr revid: odo@openerp.com-
20101125172144-3z0rs97u50q142vx
Olivier Dony [Thu, 25 Nov 2010 17:19:27 +0000 (18:19 +0100)]
[IMP] module: no warning about missing english translation
bzr revid: odo@openerp.com-
20101125171927-j68orn14dagff22r
Xavier Morel [Thu, 25 Nov 2010 16:57:20 +0000 (17:57 +0100)]
[ADD] base: method to fetch an act_window from its xml_id on ir.actions.act_window
Also used it to replace the corresponding code in ir.attachment and res.widget.wizard
bzr revid: xmo@openerp.com-
20101125165720-62qphqpmt4fl2xcl
Xavier Morel [Thu, 25 Nov 2010 14:48:34 +0000 (15:48 +0100)]
[IMP] have res.widget.wizard return its initial act_window itself to avoid hardcoding it in the client
bzr revid: xmo@openerp.com-
20101125144834-jblj68hf1hsso6vt
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 14:41:27 +0000 (15:41 +0100)]
[IMP] account: improved the general ledger report
bzr revid: qdp-launchpad@tinyerp.com-
20101125144127-b7xf8xta4w2jcwkd
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 14:36:41 +0000 (15:36 +0100)]
[IMP] account: set the journal code size to 5 chars max in order to improve the reports (smaller column for this field without any risk)
bzr revid: qdp-launchpad@tinyerp.com-
20101125143641-02t6o55nxg396rk5
P. Christeas, O. Dony [Thu, 25 Nov 2010 14:22:19 +0000 (15:22 +0100)]
[MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-
20101125142219-8bkqfboyuslzpvyo
Olivier Dony [Thu, 25 Nov 2010 14:13:24 +0000 (15:13 +0100)]
[IMP] tools: moved files properly after reverting incorrect commit
See revid:p_christ@hol.gr-
20101123135849-z6bojjykt7r0dgx1use
bzr revid: odo@openerp.com-
20101125141324-u7eevky9ckcrzj73
Olivier Dony [Thu, 25 Nov 2010 14:11:57 +0000 (15:11 +0100)]
[REVERT] use move instead of delete+add, revert revid:p_christ@hol.gr-
20101123135849-z6bojjykt7r0dgx1use
bzr revid: odo@openerp.com-
20101125141157-3gbjfqf0iwt1uqh8
Xavier Morel [Thu, 25 Nov 2010 14:03:36 +0000 (15:03 +0100)]
[ADD] a few demo widgets
bzr revid: xmo@openerp.com-
20101125140336-w51ae3sewvdfbcwu
Olivier Dony [Thu, 25 Nov 2010 13:58:00 +0000 (14:58 +0100)]
[IMP] orm.write: ignore unknown fields, more consistent with rest of API
bzr revid: odo@openerp.com-
20101125135800-dzad2x864bn8p1ah
Xavier Morel [Thu, 25 Nov 2010 12:48:34 +0000 (13:48 +0100)]
[FIX] res_widget: use context correctly
bzr revid: xmo@openerp.com-
20101125124834-daf5p22of6r9unvc
Xavier Morel [Thu, 25 Nov 2010 12:48:11 +0000 (13:48 +0100)]
[FIX] res_widget: improve some labels/names
bzr revid: xmo@openerp.com-
20101125124811-mrw9xa99bjurwm0h
Xavier Morel [Thu, 25 Nov 2010 11:09:00 +0000 (12:09 +0100)]
[ADD] some more twitter widget for demo
bzr revid: xmo@openerp.com-
20101125110900-6utcye5hs2p3zpx0
GPA (OpenERP) [Thu, 25 Nov 2010 10:50:02 +0000 (11:50 +0100)]
[MERGE] ir.ui.menu,rng: support for embedded web icons for menuitems
bzr revid: odo@openerp.com-
20101125105002-o6pbzql6lsqhx60w
Olivier Dony [Thu, 25 Nov 2010 10:35:27 +0000 (11:35 +0100)]
[FIX] l10n_th: removed references to non-existant fields
bzr revid: odo@openerp.com-
20101125103527-xvnd629jyycdn6zw
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 10:17:01 +0000 (11:17 +0100)]
[MERGE] merged the apa branch
bzr revid: qdp-launchpad@tinyerp.com-
20101125101701-cr5c3vlkdgy8sqak
qdp-launchpad@tinyerp.com [Thu, 25 Nov 2010 10:13:35 +0000 (11:13 +0100)]
[MERGE] merged the apa server branch
bzr revid: qdp-launchpad@tinyerp.com-
20101125101335-2f5gyrmaxmowicw0
Anup (OpenERP) [Thu, 25 Nov 2010 07:00:10 +0000 (12:30 +0530)]
[FIX] stock : product_uos_quantity now displayed in Stock Moves
lp bug: https://launchpad.net/bugs/676491 fixed
bzr revid: ach@tinyerp.com-
20101125070010-m4feuhznyi3881g7
gpa [Thu, 25 Nov 2010 05:27:29 +0000 (10:57 +0530)]
Improvement for the transformation of the icon file paths inside
bzr revid: gpa@tinyerp.com-
20101125052729-bajcewtj468rhcjx
Launchpad Translations on behalf of openerp [Thu, 25 Nov 2010 04:57:45 +0000 (04:57 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101125045745-sqwvemtqcmgijfwk
Launchpad Translations on behalf of openerp [Thu, 25 Nov 2010 04:52:16 +0000 (04:52 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101125045216-6u4oqrvi5hr8i6pz
OpenERP GTK R&D Team [Wed, 24 Nov 2010 18:44:33 +0000 (19:44 +0100)]
[MERGE] read_group: now returns count information for the groups
bzr revid: odo@openerp.com-
20101124184433-eo54itrejuak0exp
Olivier Dony [Wed, 24 Nov 2010 18:41:08 +0000 (19:41 +0100)]
[IMP] orm.orm: cleaned up comments after previous patches
bzr revid: odo@openerp.com-
20101124184108-iw1up4jomysfoh85
Jay (OpenERP) [Wed, 24 Nov 2010 18:09:50 +0000 (23:39 +0530)]
[FIX] Base_report_creator : Export should respect the order of fields.Corrcted.
lp bug: https://launchpad.net/bugs/645514 fixed
bzr revid: jvo@tinyerp.com-
20101124180950-si3mdr82tkcfdp6b
Olivier Dony [Wed, 24 Nov 2010 17:32:22 +0000 (18:32 +0100)]
[IMP] yaml_import: improved resolution of XML IDs
bzr revid: odo@openerp.com-
20101124173222-177ra54gh0t5z0uy
Olivier Dony [Wed, 24 Nov 2010 17:30:28 +0000 (18:30 +0100)]
[FIX] websrv_lib: Darwin webdav workaround
bzr revid: odo@openerp.com-
20101124173028-iumdj77clfhsnsuj
Olivier Dony [Wed, 24 Nov 2010 17:28:19 +0000 (18:28 +0100)]
[FIX] orm.import_data: also translate SQL constraints error messages that are not callable
bzr revid: odo@openerp.com-
20101124172819-33ahiq3aacgwt8f2
Olivier Dony [Wed, 24 Nov 2010 16:41:35 +0000 (17:41 +0100)]
[FIX] ir_actions: minor typo
bzr revid: odo@openerp.com-
20101124164135-6qemb2nof0uzx2f2
Olivier Dony [Wed, 24 Nov 2010 16:41:05 +0000 (17:41 +0100)]
[FIX] res.user: code cleanup after merging previous patches
bzr revid: odo@openerp.com-
20101124164105-xsd2nkit09g29gjl
Olivier Dony [Wed, 24 Nov 2010 16:40:41 +0000 (17:40 +0100)]
[FIX] osv.osv: code cleanup after merging previous patches
bzr revid: odo@openerp.com-
20101124164041-760b4zoidv0omu6c
Olivier Dony [Wed, 24 Nov 2010 16:38:40 +0000 (17:38 +0100)]
[FIX] addons.__init__: fixed mismatching logger API usage
bzr revid: odo@openerp.com-
20101124163840-eyctlqtgjfq9h1u0
Olivier Dony [Wed, 24 Nov 2010 15:27:07 +0000 (16:27 +0100)]
[MERGE] merged second batch of fixes from xrg-pg84 branch
bzr revid: odo@openerp.com-
20101124152707-ksfaru7en81x8xn2
qdp-launchpad@tinyerp.com [Wed, 24 Nov 2010 14:39:32 +0000 (15:39 +0100)]
[MERGE] merged with main addons branch
bzr revid: qdp-launchpad@tinyerp.com-
20101124143932-y7wn0ccc8ou23751
vda (Open ERP) [Wed, 24 Nov 2010 13:48:14 +0000 (19:18 +0530)]
[FIX] Changed wizard field to many2many.
bzr revid: vda@tinyerp.com-
20101124134814-0sm2ovho7uhglew7
vda (Open ERP) [Wed, 24 Nov 2010 13:35:01 +0000 (19:05 +0530)]
[FIX] proper function name.
bzr revid: vda@tinyerp.com-
20101124133501-tda7mokabltu8gmr
apa-tiny [Wed, 24 Nov 2010 13:32:59 +0000 (19:02 +0530)]
[IMP]:account:Improved General Ledger (Non Landscape) for good alignment and also used strip_name function and also same as sxw file.
bzr revid: apa@tinyerp.com-
20101124133259-3t3yy0zce40tlag1
vda (Open ERP) [Wed, 24 Nov 2010 13:32:05 +0000 (19:02 +0530)]
[FIX] Minor changes for wizard view action.
bzr revid: vda@tinyerp.com-
20101124133205-puhsrloz66y96hbz
vda (Open ERP) [Wed, 24 Nov 2010 12:02:30 +0000 (17:32 +0530)]
[FIX] Add openERP favourites global widget for all user.
bzr revid: vda@tinyerp.com-
20101124120230-f4stb8s372dubkti
apa-tiny [Wed, 24 Nov 2010 11:34:26 +0000 (17:04 +0530)]
[IMP]:account:Improved Partner Ledger reports.
bzr revid: apa@tinyerp.com-
20101124113426-vlvgqrpkdaec4roy
apa-tiny [Wed, 24 Nov 2010 11:21:20 +0000 (16:51 +0530)]
[IMP]:account:Improved Partner Ledger other sxw file same as rml file.
bzr revid: apa@tinyerp.com-
20101124112120-69r8674pw17by4nl
apa-tiny [Wed, 24 Nov 2010 11:08:02 +0000 (16:38 +0530)]
[IMP]:account:Improved Partner Ledger other for good alignment and also used strip_name function
bzr revid: apa@tinyerp.com-
20101124110802-i553clyzkszy3s4v
apa-tiny [Wed, 24 Nov 2010 10:51:28 +0000 (16:21 +0530)]
[IMP]:account:added <pto> tag for repeat the column on each page.(Partner Ledger)
bzr revid: apa@tinyerp.com-
20101124105128-hf3eeyhnq5o54wwl
gpa [Wed, 24 Nov 2010 10:49:36 +0000 (16:19 +0530)]
Improvement for the web client dash board
bzr revid: gpa@tinyerp.com-
20101124104936-rk38vyhz7bll6f9r
apa-tiny [Wed, 24 Nov 2010 10:15:29 +0000 (15:45 +0530)]
[IMP]:account:Improved Partner Ledger (On Partner Per Page) for good alignment and also used strip_name function with same as sxw file.
bzr revid: apa@tinyerp.com-
20101124101529-utytr9rq95no13fn
apa-tiny [Wed, 24 Nov 2010 10:10:30 +0000 (15:40 +0530)]
[IMP]:Improved internal and internal landscape report header for good alignment.
bzr revid: apa@tinyerp.com-
20101124101030-h5qhqjfknsqhl8iy
P. Christeas [Wed, 24 Nov 2010 09:48:53 +0000 (11:48 +0200)]
sql_db: only do frame inspection when debugging
This affects the "Cursor not closed explicitly..." message.
The message is at a "warning" level, but the frame inspection added
some expensive overhead to each cursor open. So, avoid that unless we
are at debug mode.
bzr revid: p_christ@hol.gr-
20101124094853-0ljr6nebkyya0eui
Launchpad Translations on behalf of openerp [Wed, 24 Nov 2010 05:07:27 +0000 (05:07 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101124050727-9r80w33i8dkvyp4d
apa-tiny [Wed, 24 Nov 2010 05:05:06 +0000 (10:35 +0530)]
[MERGE]
bzr revid: apa@tinyerp.com-
20101124050506-51qrsij9yqup1akq
apa-tiny [Wed, 24 Nov 2010 05:04:45 +0000 (10:34 +0530)]
[MERGE]
bzr revid: apa@tinyerp.com-
20101124043000-7ldthiwx1eze1ss7
bzr revid: apa@tinyerp.com-
20101124050445-3o2szdqh6ys7xens
Launchpad Translations on behalf of openerp [Wed, 24 Nov 2010 04:58:11 +0000 (04:58 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20101124045811-vl5c0cch1o2gl9o5
apa-tiny [Wed, 24 Nov 2010 04:41:16 +0000 (10:11 +0530)]
[MERGE]
bzr revid: apa@tinyerp.com-
20101124044116-9347i618xj00yumy
apa-tiny [Wed, 24 Nov 2010 04:32:58 +0000 (10:02 +0530)]
[MERGE]
bzr revid: apa@tinyerp.com-
20101124043258-wp0uz522nvw398b7
apa-tiny [Wed, 24 Nov 2010 04:32:03 +0000 (10:02 +0530)]
[MERGE]
bzr revid: apa@tinyerp.com-
20101124043203-qsg4ps01l9gq2ume
Xavier Morel [Tue, 23 Nov 2010 21:52:42 +0000 (22:52 +0100)]
[FIX] share: login value and dbname key (typo) in the codepath handling sharing to existing users
bzr revid: xmo@openerp.com-
20101123215242-glqx7ooqi6eadyhy
P. Christeas [Tue, 23 Nov 2010 18:33:57 +0000 (20:33 +0200)]
websrv_lib: update copyright and remove bogus note
The reference to the "ganeti" project has always been totally arbitrary
and false. It is true that some parts of "websrv_lib" have been based
on Python's BaseHTTPServer and SimpleHTTPServer classes, but not more
than that. Overriding and perhaps resembling to parent classes is the
most common thing in OO programming. But never copied or knew about
any "ganeti" project whatsoever. (actually, the code mentioned at the
url admits itself that it copies the BaseHTTPServer, a common
denominator)
Git history to your help, all the code evolution is clearly recorded.
bzr revid: p_christ@hol.gr-
20101123183357-fjroqywizql2qdkk
P. Christeas [Tue, 23 Nov 2010 18:08:24 +0000 (20:08 +0200)]
misc: import warnings, needed for earlier patch
bzr revid: p_christ@hol.gr-
20101123180824-sk28lwc298v89rr4
Olivier Dony [Tue, 23 Nov 2010 16:05:06 +0000 (17:05 +0100)]
[IMP] ir.model.data,res.log: allow marking res.log entries as read upon creation via context + do it during module install to avoid useless log spam
bzr revid: odo@openerp.com-
20101123160506-qsxa7gm5j8scphdz
P. Christeas [Tue, 23 Nov 2010 15:58:20 +0000 (17:58 +0200)]
ir.translate: revert some pg84 argument from the cherry-picks
bzr revid: p_christ@hol.gr-
20101123155820-ltqymky8482k8l9l
P. Christeas [Tue, 23 Nov 2010 15:44:48 +0000 (17:44 +0200)]
websrv_lib: add quirk for Darwin 9.x.x webdav clients.
They will report "HTTP/1.0" to us, while they support (and need) the
authorisation features of HTTP/1.1 .
This makes WebDAV work for some Mac OSX versions.
bzr revid: p_christ@hol.gr-
20101123154448-0z7s5o77256cj1tu
P. Christeas [Tue, 23 Nov 2010 15:44:08 +0000 (17:44 +0200)]
fields: conform some default arguments to the coding standards
Side-effects may appear, let us test.
bzr revid: p_christ@hol.gr-
20101123154408-qlkittdb7ogrqq2s
P. Christeas [Tue, 23 Nov 2010 15:43:35 +0000 (17:43 +0200)]
ir.model: simplify some defaults
bzr revid: p_christ@hol.gr-
20101123154335-tl2jm6litwx3ysro
P. Christeas [Tue, 23 Nov 2010 15:43:06 +0000 (17:43 +0200)]
module: improve over previous commit, fix mutable args
Conflicts:
bin/addons/base/module/module.py
bzr revid: p_christ@hol.gr-
20101123154306-j88k617evep9napa
Ferdinand Gassauer [Tue, 23 Nov 2010 15:42:55 +0000 (17:42 +0200)]
module: sorted Features
returns alphabetically sorted Menu,Views,Reports to make these lists
readable for humans.
bzr revid: p_christ@hol.gr-
20101123154255-4iazp4ec7wisn2sq
P. Christeas [Tue, 23 Nov 2010 15:42:12 +0000 (17:42 +0200)]
ir.attachment: revise the access control code, let it be overriden
There was a fundamental problem when a user, through the 'document' module
would try to write into his personal folder; the res.users model won't be
writable by normal users. So, have all this code in a _single_ function,
which will be redefined by document.
Also follow the v6 API for access control, don't just lookup at ir.model.access.
Conflicts:
bin/addons/base/ir/ir_attachment.py
bzr revid: p_christ@hol.gr-
20101123154212-pphsnyp2rsmbjf72
P. Christeas [Tue, 23 Nov 2010 15:40:32 +0000 (17:40 +0200)]
ir.model: mutable argument fix
bzr revid: p_christ@hol.gr-
20101123154032-tuoe1aiy9wpnjp2y
P. Christeas [Tue, 23 Nov 2010 15:39:36 +0000 (17:39 +0200)]
yaml-import: fix working with deleted data
At some cases, ir.model.data is left with orphan entries, so ensure that
the message below is used (rather than "bool has no get()" exception).
Conflicts:
bin/tools/yaml_import.py
bzr revid: p_christ@hol.gr-
20101123153936-0cc4t4e2xwat70q1
P. Christeas [Tue, 23 Nov 2010 15:35:58 +0000 (17:35 +0200)]
websrv_lib: abort request on partial headers.
While searching for the KTHML bug, noticed that partial http requests
would falsely be honoured. Instead, we must check if the full headers
(including the blank line) have been parsed before we dispatch the
request to the virtual handler class.
Conflicts:
bin/service/websrv_lib.py
bzr revid: p_christ@hol.gr-
20101123153558-oh44mjkhwjaebwow
P. Christeas [Tue, 23 Nov 2010 15:33:25 +0000 (17:33 +0200)]
tools.convert, misc: use pythonic logging
Conflicts:
bin/tools/convert.py
bin/tools/misc.py
bzr revid: p_christ@hol.gr-
20101123153325-wicnjxt98lp03cpf
P. Christeas [Tue, 23 Nov 2010 15:32:35 +0000 (17:32 +0200)]
rml2pdf: better message if a font is not available.
Since
91422704d965268f, specifying a font that is not registered with
pdfmetrics will raise an exception. Now, improve that exception to
help the user understand what has gone wrong.
Note: rather than hiding the fact that some font is missing, the admin
should see this error and try to either fix the report (to use a known
font), or register more fonts with the customfonts.py mechanism.
bzr revid: p_christ@hol.gr-
20101123153235-c1yri33ptaydb5eo
P. Christeas [Tue, 23 Nov 2010 15:32:23 +0000 (17:32 +0200)]
res.user: cleanup defaults, use 1 sql query per login (from 3)
bzr revid: p_christ@hol.gr-
20101123153223-2u34e4eszt5aflv1
P. Christeas [Tue, 23 Nov 2010 15:31:59 +0000 (17:31 +0200)]
ir.attachment: mark 'type' and 'company_id' with change_defaults
Other fields of attachments (like the directories, in document) should
have their default properties depending on these.
bzr revid: p_christ@hol.gr-
20101123153159-wpus8bxls1q03ks9
P. Christeas [Tue, 23 Nov 2010 15:27:40 +0000 (17:27 +0200)]
translate: fix default arguments after last patch
bzr revid: p_christ@hol.gr-
20101123152740-pn9mbptpdvw0sz98
P. Christeas [Tue, 23 Nov 2010 15:25:51 +0000 (17:25 +0200)]
ir.ui.menu: Fix default args, no need for lambda in _defaults.
bzr revid: p_christ@hol.gr-
20101123152551-dr7dov1fip2r7jet
P. Christeas [Tue, 23 Nov 2010 15:22:34 +0000 (17:22 +0200)]
module: fix usage of new get_module_resource()
It will return False, now, if the file is missing. No need to perform
os.path.exists().
bzr revid: p_christ@hol.gr-
20101123152234-4iptp8yzboq3gicz
P. Christeas [Tue, 23 Nov 2010 15:22:24 +0000 (17:22 +0200)]
tools/misc: port the exec_command_pipe() to the subprocess module.
The os.popen2 is deprecated since Python 2.6. It also failed to properly
escape the command line arguments.
Conflicts:
bin/tools/misc.py
bzr revid: p_christ@hol.gr-
20101123152224-d52414w2tscw6bvo
P. Christeas [Tue, 23 Nov 2010 15:20:29 +0000 (17:20 +0200)]
res_user: fix default args, close db cursors.
Conflicts:
bin/addons/base/res/res_user.py
bzr revid: p_christ@hol.gr-
20101123152029-c823isjqrpml7dva
P. Christeas [Tue, 23 Nov 2010 15:20:02 +0000 (17:20 +0200)]
trml2pdf: Fix using of custom fonts in reports
That snippet of code practically meant "don't use anything but the
standard fonts (by name) in the report". It obviously wanted to prevent the
rml2pdf engine from crashing at a non-existent font.
Well, if the report specifies a font that cannot be mapped by the system,
it should preferably raise an exception (and ask us to fix the report), not
silently ignore the font.
Case 1: the internationalized reports, where font name is used to select a
Unicode-capable font.
Case 2: l10n_ch, where the OCR-B font had to be used (perhaps legal req.)
bzr revid: p_christ@hol.gr-
20101123152002-es404ul29rsohzqd
P. Christeas [Tue, 23 Nov 2010 15:19:30 +0000 (17:19 +0200)]
rml2pdf: use ustr() instead of unicode()
When strings are 8-bit utf8-encoded, unicode will break with the usual:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position ..
message. ustr() will have better luck in those cases.
Conflicts:
bin/report/render/rml2pdf/utils.py
bzr revid: p_christ@hol.gr-
20101123151930-8r9q9gg7r902i2nv
P. Christeas [Tue, 23 Nov 2010 15:17:40 +0000 (17:17 +0200)]
http_server: allow requests to "see" the protocol of the server
Needed for WebDAV.
Conflicts:
bin/service/http_server.py
bzr revid: p_christ@hol.gr-
20101123151740-ovx7jg8yp3070qqe
P. Christeas [Tue, 23 Nov 2010 15:14:44 +0000 (17:14 +0200)]
trml2pdf: cleaner import of StringIO
bzr revid: p_christ@hol.gr-
20101123151444-sbnfj0fu1nkl2pkr
P. Christeas [Tue, 23 Nov 2010 15:11:31 +0000 (17:11 +0200)]
pdf customfonts: allow absolute paths in registered fonts
bzr revid: p_christ@hol.gr-
20101123151131-v0v1qfkiajh0cw73
P. Christeas [Tue, 23 Nov 2010 15:11:24 +0000 (17:11 +0200)]
report customFonts: have debugging logs for fonts mapped.
Since this is platform-dependant, it is good to be able to debug
if that algorithm worked and located our TTF fonts.
bzr revid: p_christ@hol.gr-
20101123151124-wk5r5fac00kpu3f4
P. Christeas [Tue, 23 Nov 2010 15:11:10 +0000 (17:11 +0200)]
report/render: fixes from xrg branch
This should log the rendering exceptions for reports. Also fix am error at
custom fonts, suppress a message.
Conflicts:
bin/report/render/rml2pdf/utils.py
bzr revid: p_christ@hol.gr-
20101123151110-bckon1ji7hul20mp
P. Christeas [Tue, 23 Nov 2010 15:09:45 +0000 (17:09 +0200)]
Fix rml2pdf custom ttf fonts.
The attempt to put checks in that code had broken it.
bzr revid: p_christ@hol.gr-
20101123150945-012xrvhz3ya2watl