odoo/odoo.git
13 years ago[ADD] base_tools: base module for all tools to create and add web icons only once...
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

13 years ago[ADD] stock: web icon for the warehouse application
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

13 years ago[ADD] purchase: web_icon for purchases application
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

13 years ago[ADD] project: web_icon for project application
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

13 years ago[ADD] point_of_sale: web_icon for point of sale application
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

13 years ago[ADD] mrp: web_icon for manufacturing application
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

13 years ago[ADD] knowlege: web_icon for knowledge application
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

13 years ago[ADD] hr: web_icon for human resources application
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

13 years ago[ADD] account: web_icon for accounting application
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

13 years agoLaunchpad automatic translations update.
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

13 years ago[MERGE] merged the report server branch
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

13 years ago[MERGE] merged the report branch
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

13 years ago[MERGE] many improvements regarding translations, logging, reports, http, speed, ...
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

13 years ago[IMP] account: report 'Journals' improved
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

13 years ago[IMP] tools.translate: more lenient with malformed PO entries
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

13 years ago[IMP] tools.translate: use consistent logging API
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

13 years ago[IMP] module: no warning about missing english translation
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

13 years ago[ADD] base: method to fetch an act_window from its xml_id on ir.actions.act_window
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

13 years ago[IMP] have res.widget.wizard return its initial act_window itself to avoid hardcoding...
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

13 years ago[IMP] account: improved the general ledger report
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

13 years ago[IMP] account: set the journal code size to 5 chars max in order to improve the repor...
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

13 years ago[MERGE] many improvements regarding translations, logging, reports, http, speed
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

13 years ago[IMP] tools: moved files properly after reverting incorrect commit
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

13 years ago[REVERT] use move instead of delete+add, revert revid:p_christ@hol.gr-20101123135849...
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

13 years ago[ADD] a few demo widgets
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

13 years ago[IMP] orm.write: ignore unknown fields, more consistent with rest of API
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

13 years ago[FIX] res_widget: use context correctly
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

13 years ago[FIX] res_widget: improve some labels/names
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

13 years ago[ADD] some more twitter widget for demo
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

13 years ago[MERGE] ir.ui.menu,rng: support for embedded web icons for menuitems
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

13 years ago[FIX] l10n_th: removed references to non-existant fields
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

13 years ago[MERGE] merged the apa branch
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

13 years ago[MERGE] merged the apa server branch
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

13 years ago[FIX] stock : product_uos_quantity now displayed in Stock Moves
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

13 years agoImprovement for the transformation of the icon file paths inside
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

13 years agoLaunchpad automatic translations update.
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

13 years agoLaunchpad automatic translations update.
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

13 years ago[MERGE] read_group: now returns count information for the groups
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

13 years ago[IMP] orm.orm: cleaned up comments after previous patches
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

13 years ago[FIX] Base_report_creator : Export should respect the order of fields.Corrcted.
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

13 years ago[IMP] yaml_import: improved resolution of XML IDs
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

13 years ago[FIX] websrv_lib: Darwin webdav workaround
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

13 years ago[FIX] orm.import_data: also translate SQL constraints error messages that are not...
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

13 years ago[FIX] ir_actions: minor typo
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

13 years ago[FIX] res.user: code cleanup after merging previous patches
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

13 years ago[FIX] osv.osv: code cleanup after merging previous patches
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

13 years ago[FIX] addons.__init__: fixed mismatching logger API usage
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

13 years ago[MERGE] merged second batch of fixes from xrg-pg84 branch
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

13 years ago[MERGE] merged with main addons branch
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

13 years ago[FIX] Changed wizard field to many2many.
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

13 years ago[FIX] proper function name.
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

13 years ago[IMP]:account:Improved General Ledger (Non Landscape) for good alignment and also...
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

13 years ago[FIX] Minor changes for wizard view action.
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

13 years ago[FIX] Add openERP favourites global widget for all user.
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

13 years ago[IMP]:account:Improved Partner Ledger reports.
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

13 years ago[IMP]:account:Improved Partner Ledger other sxw file same as rml file.
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

13 years ago[IMP]:account:Improved Partner Ledger other for good alignment and also used strip_na...
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

13 years ago[IMP]:account:added <pto> tag for repeat the column on each page.(Partner Ledger)
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

13 years agoImprovement for the web client dash board
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

13 years ago[IMP]:account:Improved Partner Ledger (On Partner Per Page) for good alignment and...
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

13 years ago[IMP]:Improved internal and internal landscape report header for good alignment.
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

13 years agosql_db: only do frame inspection when debugging
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

13 years agoLaunchpad automatic translations update.
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

13 years ago[MERGE]
apa-tiny [Wed, 24 Nov 2010 05:05:06 +0000 (10:35 +0530)]
[MERGE]

bzr revid: apa@tinyerp.com-20101124050506-51qrsij9yqup1akq

13 years ago[MERGE]
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

13 years agoLaunchpad automatic translations update.
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

13 years ago[MERGE]
apa-tiny [Wed, 24 Nov 2010 04:41:16 +0000 (10:11 +0530)]
[MERGE]

bzr revid: apa@tinyerp.com-20101124044116-9347i618xj00yumy

13 years ago[MERGE]
apa-tiny [Wed, 24 Nov 2010 04:32:58 +0000 (10:02 +0530)]
[MERGE]

bzr revid: apa@tinyerp.com-20101124043258-wp0uz522nvw398b7

13 years ago[MERGE]
apa-tiny [Wed, 24 Nov 2010 04:32:03 +0000 (10:02 +0530)]
[MERGE]

bzr revid: apa@tinyerp.com-20101124043203-qsg4ps01l9gq2ume

13 years ago[FIX] share: login value and dbname key (typo) in the codepath handling sharing to...
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

13 years agowebsrv_lib: update copyright and remove bogus note
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

13 years agomisc: import warnings, needed for earlier patch
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

13 years ago[IMP] ir.model.data,res.log: allow marking res.log entries as read upon creation...
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

13 years agoir.translate: revert some pg84 argument from the cherry-picks
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

13 years agowebsrv_lib: add quirk for Darwin 9.x.x webdav clients.
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

13 years agofields: conform some default arguments to the coding standards
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

13 years agoir.model: simplify some defaults
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

13 years agomodule: improve over previous commit, fix mutable args
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

13 years agomodule: sorted Features
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

13 years agoir.attachment: revise the access control code, let it be overriden
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

13 years agoir.model: mutable argument fix
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

13 years agoyaml-import: fix working with deleted data
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

13 years agowebsrv_lib: abort request on partial headers.
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

13 years agotools.convert, misc: use pythonic logging
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

13 years agorml2pdf: better message if a font is not available.
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

13 years agores.user: cleanup defaults, use 1 sql query per login (from 3)
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

13 years agoir.attachment: mark 'type' and 'company_id' with change_defaults
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

13 years agotranslate: fix default arguments after last patch
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

13 years agoir.ui.menu: Fix default args, no need for lambda in _defaults.
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

13 years agomodule: fix usage of new get_module_resource()
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

13 years agotools/misc: port the exec_command_pipe() to the subprocess module.
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

13 years agores_user: fix default args, close db cursors.
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

13 years agotrml2pdf: Fix using of custom fonts in reports
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

13 years agorml2pdf: use ustr() instead of unicode()
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

13 years agohttp_server: allow requests to "see" the protocol of the server
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

13 years agotrml2pdf: cleaner import of StringIO
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

13 years agopdf customfonts: allow absolute paths in registered fonts
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

13 years agoreport customFonts: have debugging logs for fonts mapped.
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

13 years agoreport/render: fixes from xrg branch
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

13 years agoFix rml2pdf custom ttf fonts.
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