odoo/odoo.git
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[MERGE] Account: Improve the list view of move line on bank statement reconciliation...
Mustufa Rangwala [Wed, 24 Nov 2010 13:49:22 +0000 (19:19 +0530)]
[MERGE] Account: Improve the list view of move line on bank statement reconciliation with editable mode and some selected field. and also added domain stateiment_id=False on it

bzr revid: mra@mra-laptop-20101124134922-dw3rmaq1fheuveca

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[MERGE] account_voucher: write off with payment (remaining: need to fix write off...
Mustufa Rangwala [Wed, 24 Nov 2010 13:40:46 +0000 (19:10 +0530)]
[MERGE] account_voucher: write off with payment (remaining: need to fix write off move lines on voucher)

bzr revid: mra@mra-laptop-20101124134046-hqt3piiwy7k0iga7

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[REF] Account: change sequence of move line on bank reconciliation
ARA (OpenERP) [Wed, 24 Nov 2010 13:32:06 +0000 (19:02 +0530)]
[REF] Account: change sequence of  move line on bank reconciliation

bzr revid: ara@tinyerp.com-20101124133206-ca2x4pp238koi0i4

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[IMP]: product: Improvement in product demo for Stockable to consumable + Improvement...
rpa (Open ERP) [Wed, 24 Nov 2010 12:53:25 +0000 (18:23 +0530)]
[IMP]: product: Improvement in product demo for Stockable to consumable + Improvement in indentation

bzr revid: rpa@tinyerp.com-20101124125325-xh0h3y1dbfuv0ntg

13 years ago[REF] Account: add domain on move line on bank reconciliation
ARA (OpenERP) [Wed, 24 Nov 2010 12:43:58 +0000 (18:13 +0530)]
[REF] Account: add domain on move line on bank reconciliation

bzr revid: ara@tinyerp.com-20101124124358-79r5ef7751kbahc2

13 years ago[IMP] account_sequence:changes in the execute method and return of _get_internal_sequ...
mtr [Wed, 24 Nov 2010 12:37:51 +0000 (18:07 +0530)]
[IMP] account_sequence:changes in the execute method and return of _get_internal_sequence method

bzr revid: mtr@mtr-20101124123751-tga2tn6oy3ipewrn

13 years ago[MERGE] merge from dev3
ARA (OpenERP) [Wed, 24 Nov 2010 12:25:37 +0000 (17:55 +0530)]
[MERGE] merge from dev3

bzr revid: ara@tinyerp.com-20101124122537-xxg225eohe5pp0zv

13 years ago[MERGE] + [BUG] lp:673895
Thibault Francois [Wed, 24 Nov 2010 12:19:11 +0000 (13:19 +0100)]
[MERGE] + [BUG] lp:673895

bzr revid: tfr@openerp.com-20101124121911-n0w6gwov6zopw4ul

13 years ago[REF] Account: Bank statement reconcilation view with editable and selected field...
ARA (OpenERP) [Wed, 24 Nov 2010 12:14:19 +0000 (17:44 +0530)]
[REF] Account: Bank statement reconcilation view with editable and selected field in list view

bzr revid: ara@tinyerp.com-20101124121419-0f48w8567k3380di

13 years ago[REF] account_voucher
psi (Open ERP) [Wed, 24 Nov 2010 12:13:47 +0000 (17:43 +0530)]
[REF] account_voucher

bzr revid: psi@tinyerp.co.in-20101124121347-lneo86884oijlo2i

13 years ago[REF]: sale/stock.py: Put proper variable name to make code properly readable for uos
rpa (Open ERP) [Wed, 24 Nov 2010 12:11:33 +0000 (17:41 +0530)]
[REF]: sale/stock.py: Put proper variable name to make code properly readable for uos

bzr revid: rpa@tinyerp.com-20101124121133-pyo7ifgdd80l38lx

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[REF]: stock: Improvement in code
rpa (Open ERP) [Wed, 24 Nov 2010 11:54:23 +0000 (17:24 +0530)]
[REF]: stock: Improvement in code

bzr revid: rpa@tinyerp.com-20101124115423-1yuo989sr1ekp2jy

13 years ago[MERGE] with lp:~openerp-dev/openobject-addons/trunk-dev-addons1
jam-openerp [Wed, 24 Nov 2010 11:49:19 +0000 (17:19 +0530)]
[MERGE] with lp:~openerp-dev/openobject-addons/trunk-dev-addons1

bzr revid: jam@tinyerp.com-20101124114919-zmh5nqpjr3ghuszx

13 years ago[MERGE] branch merged with lp:~openerp-dev/openobject-addons/trunk-dev-addons3
mtr [Wed, 24 Nov 2010 11:44:33 +0000 (17:14 +0530)]
[MERGE] branch merged with lp:~openerp-dev/openobject-addons/trunk-dev-addons3

bzr revid: mtr@mtr-20101124114433-o3z779vdky7yr5lz

13 years ago[IMP] sale:'Recreate procurement' on shipping exception now works with more than...
mtr [Wed, 24 Nov 2010 11:41:51 +0000 (17:11 +0530)]
[IMP] sale:'Recreate procurement' on shipping exception now works with more than one sale order line

bzr revid: mtr@mtr-20101124114151-mn9u8b0oyicaj0jr

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]: stock: Improvement in split lot and pack wizard to write move in inventory...
rpa (Open ERP) [Wed, 24 Nov 2010 11:27:43 +0000 (16:57 +0530)]
[IMP]: stock: Improvement in split lot and pack wizard to write move in inventory if wizard is used for inventory

bzr revid: rpa@tinyerp.com-20101124112743-yf96yzwehdlu4qq1

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 ago[IMP]: stock: Pass context properly in copy of move
rpa (Open ERP) [Wed, 24 Nov 2010 10:50:29 +0000 (16:20 +0530)]
[IMP]: stock: Pass context properly in copy of move

bzr revid: rpa@tinyerp.com-20101124105029-5kbr51s9ks1w3raz

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]: stock: action_confirm,action_done of inventory should pass reference of invent...
rpa (Open ERP) [Wed, 24 Nov 2010 10:48:50 +0000 (16:18 +0530)]
[IMP]: stock: action_confirm,action_done of inventory should pass reference of inventory which is created in this demo

bzr revid: rpa@tinyerp.com-20101124104850-b7p8rhl4hdrovvhf

13 years ago[REF]: stock: tab to spaces
rpa (Open ERP) [Wed, 24 Nov 2010 10:45:57 +0000 (16:15 +0530)]
[REF]: stock: tab to spaces

bzr revid: rpa@tinyerp.com-20101124104557-utvapif3wm6gft9w

13 years ago[FIX]: stock: action_confirm should not fill date_done on Physical Inventory
rpa (Open ERP) [Wed, 24 Nov 2010 10:42:05 +0000 (16:12 +0530)]
[FIX]: stock: action_confirm should not fill date_done on Physical Inventory

bzr revid: rpa@tinyerp.com-20101124104205-0zde5r8e333uz09j

13 years ago[MERGE] Account: set a size of 5 on the account_journal code field. Check also the...
Mustufa Rangwala [Wed, 24 Nov 2010 10:24:36 +0000 (15:54 +0530)]
[MERGE] Account: set a size of 5 on the account_journal code field. Check also the default data in order to get smaller code and still different that the ones that will be created on the generation of chart from template

bzr revid: mra@mra-laptop-20101124102436-w9zd4kr0v4nd88nw

13 years ago[IMP] account_voucher: add writeoff_amount filed which will show the writhoff amount...
psi (Open ERP) [Wed, 24 Nov 2010 10:18:29 +0000 (15:48 +0530)]
[IMP] account_voucher: add writeoff_amount filed which will show the writhoff amount in case of writeoff

bzr revid: psi@tinyerp.co.in-20101124101829-qa1dktqg9r7drq71

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 ago[REF] Account: replace code name saj_j to sajt
ARA (OpenERP) [Wed, 24 Nov 2010 09:59:35 +0000 (15:29 +0530)]
[REF] Account: replace code name saj_j to sajt

bzr revid: ara@tinyerp.com-20101124095935-iex1cdvxdw4rx2dc

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 ago[MERGE]
Thibault Francois [Wed, 24 Nov 2010 09:32:39 +0000 (10:32 +0100)]
[MERGE]

bzr revid: tfr@openerp.com-20101124093239-ljjff101qrmn2nfg

13 years ago[MERGE] trunk
Thibault Francois [Wed, 24 Nov 2010 09:26:54 +0000 (10:26 +0100)]
[MERGE] trunk

bzr revid: tfr@openerp.com-20101124092654-svj569t2xv5m5dvn

13 years ago[IMP]: product: Return name of product with supplier product code and name in name_ge...
rpa (Open ERP) [Wed, 24 Nov 2010 09:20:15 +0000 (14:50 +0530)]
[IMP]: product: Return name of product with supplier product code and name in name_get method in product module instead of purchase module

bzr revid: rpa@tinyerp.com-20101124092015-i2hse1bv9b0m9pfi

13 years ago[MERGE] merge from dev3
ARA (OpenERP) [Wed, 24 Nov 2010 09:18:44 +0000 (14:48 +0530)]
[MERGE] merge from dev3

bzr revid: ara@tinyerp.com-20101124091844-tpprzfhwdltqsf9a

13 years ago[MERGE] Merge with lp:openobject-addons
SBH [Wed, 24 Nov 2010 09:17:42 +0000 (14:47 +0530)]
[MERGE] Merge with lp:openobject-addons

bzr revid: sbh@sbh-desktop-20101124091742-lyhobc5mi2mfuw0n

13 years ago[REF] Account: journal code size=5 and related demo data changes
ARA (OpenERP) [Wed, 24 Nov 2010 09:15:14 +0000 (14:45 +0530)]
[REF] Account: journal code size=5 and related demo data changes

bzr revid: ara@tinyerp.com-20101124091514-4tyb6ozxi1cnhxfa

13 years ago[BUG] lp:673895
jam-openerp [Wed, 24 Nov 2010 09:03:42 +0000 (14:33 +0530)]
[BUG] lp:673895

bzr revid: jam@tinyerp.com-20101124090342-mtgw7mkiuc95dtfo

13 years ago[IMP] account_sequence:_get_internal_sequence search using xml_id and search all...
mtr [Wed, 24 Nov 2010 07:29:23 +0000 (12:59 +0530)]
[IMP] account_sequence:_get_internal_sequence search using xml_id and search all journals without any domain

bzr revid: mtr@mtr-20101124072923-ofkrd55uz1g15ild

13 years ago[IMP]Thunde3rbird Plugin Shell Script Usability Improvement
jam-openerp [Wed, 24 Nov 2010 07:18:26 +0000 (12:48 +0530)]
[IMP]Thunde3rbird Plugin Shell Script Usability Improvement

bzr revid: jam@tinyerp.com-20101124071826-37mcuzlvg6n3ujez

13 years ago[MERGE] merge with dev-addons3 branch
psi (Open ERP) [Wed, 24 Nov 2010 07:01:14 +0000 (12:31 +0530)]
[MERGE] merge with dev-addons3 branch

bzr revid: psi@tinyerp.co.in-20101124070114-fb2hb3mtlwxr48yl

13 years ago[ADD] account_voucher: implement writeoff on customer and vendor payment
psi (Open ERP) [Wed, 24 Nov 2010 06:56:40 +0000 (12:26 +0530)]
[ADD] account_voucher: implement writeoff on customer and vendor payment

bzr revid: psi@tinyerp.co.in-20101124065640-z04pv5m86nhrf9ar

13 years ago[MERGE] Account: remove wizard_xml file and move its menu to menu.xml
Mustufa Rangwala [Wed, 24 Nov 2010 06:04:02 +0000 (11:34 +0530)]
[MERGE] Account: remove wizard_xml file and move its menu to menu.xml

bzr revid: mra@mra-laptop-20101124060402-i7ut8uekada06mai

13 years ago[MERGE] resolve conflig of po files
ARA (OpenERP) [Wed, 24 Nov 2010 05:49:13 +0000 (11:19 +0530)]
[MERGE] resolve conflig of po files

bzr revid: ara@tinyerp.com-20101123105803-wklir8x8v7ri6ywp
bzr revid: ara@tinyerp.com-20101124054913-ragrrkytjad5udl0

13 years ago[MERGE]: Merge with lp:openobject-addons
rpa (Open ERP) [Wed, 24 Nov 2010 05:30:28 +0000 (11:00 +0530)]
[MERGE]: Merge with lp:openobject-addons

bzr revid: rpa@tinyerp.com-20101123131531-xux3r8ss858aztt6
bzr revid: rpa@tinyerp.com-20101124053028-7pclpk0y5egj5jpb

13 years ago[MERGE] branch merged with lp:~openerp-dev/openobject-addons/trunk-dev-addons3
mtr [Wed, 24 Nov 2010 05:14:42 +0000 (10:44 +0530)]
[MERGE] branch merged with lp:~openerp-dev/openobject-addons/trunk-dev-addons3

bzr revid: mtr@mtr-20101124051442-x64ymf3pyb9fcy39

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[ADD]: Add Calendar Directory and also crm_caldav_data and project_caldav_data.
atp (Open ERP) [Wed, 24 Nov 2010 04:53:34 +0000 (10:23 +0530)]
[ADD]: Add Calendar Directory and also crm_caldav_data and project_caldav_data.

bzr revid: atp@tinyerp.co.in-20101124045334-j88uz5hvm11u4evo

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] merge from trunk addons
Mustufa Rangwala [Wed, 24 Nov 2010 04:37:57 +0000 (10:07 +0530)]
[MERGE] merge from trunk addons

bzr revid: mra@mra-laptop-20101124043757-3jpov3rgp41z740h

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

13 years agorml2pdf: fix logging of exceptions.
P. Christeas [Tue, 23 Nov 2010 15:09:03 +0000 (17:09 +0200)]
rml2pdf: fix logging of exceptions.

exception() cannot be called without a string, yet it is even better to
demote those logs to warnings.

Conflicts:

bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123150903-zgiyob943ivcftkq

13 years ago[FIX] account/report/common_report_header.py, fixed warning: added missing statement...
qdp-launchpad@tinyerp.com [Tue, 23 Nov 2010 14:19:32 +0000 (15:19 +0100)]
[FIX] account/report/common_report_header.py, fixed warning: added missing statement for importing _

bzr revid: qdp-launchpad@tinyerp.com-20101123141932-634ulxs2z5u6q7iz

13 years agowebsrv_lib: allow "noconnection" object to carry the socket name
P. Christeas [Tue, 23 Nov 2010 13:58:58 +0000 (15:58 +0200)]
websrv_lib: allow "noconnection" object to carry the socket name

Needed for WebDAV, which wants to know the server's endpoint address.

bzr revid: p_christ@hol.gr-20101123135858-qycopdfqsll1fy38

13 years agotranslate: don't complain about fuzzy strings.
P. Christeas [Tue, 23 Nov 2010 13:58:58 +0000 (15:58 +0200)]
translate: don't complain about fuzzy strings.

They are part of the format and ought to be silently discarded.

bzr revid: p_christ@hol.gr-20101123135858-zkp7hjcn4slv3r57

13 years agoir.module: use pythonic logging, addons api
P. Christeas [Tue, 23 Nov 2010 13:58:56 +0000 (15:58 +0200)]
ir.module: use pythonic logging, addons api

bzr revid: p_christ@hol.gr-20101123135856-0px463nz9xei8ho4

13 years agoMove the client scripts into tools/
P. Christeas [Tue, 23 Nov 2010 13:58:49 +0000 (15:58 +0200)]
Move the client scripts into tools/

Just a cleanup of the root dir.

bzr revid: p_christ@hol.gr-20101123135849-z6bojjykt7r0dgx1