Commit Graph

179 Commits

Author SHA1 Message Date
Nicolas Vanhoren 68102fecd1 [MERGE] addition of name_create() ORM method for new m2o behavior in 6.1
bzr revid: odo@openerp.com-20110610173130-3dvj5t2ji8buwjrg
2011-06-10 19:31:30 +02:00
niv-openerp f888b06959 [imp] added method name_create to orm
bzr revid: nicolas.vanhoren@openerp.com-20110610161002-76kfpwb1xexryfmh
2011-06-10 18:10:02 +02:00
Vo Minh Thu d4adda9d06 [MERGE] ir_values: added asserts on the models argument type.
bzr revid: vmt@openerp.com-20110610101924-al1z5vvmcehbcgva
2011-06-10 12:19:24 +02:00
P. Christeas ba03d85325 ir.values: whitespace cleaning, put assertions on arg types
res.lang was calling with modules='string', which was not right.
Don't allow such a case.

bzr revid: xrg@linux.gr-20110610091852-y8083s085gn6kwcs
2011-06-10 12:18:52 +03:00
Vo Minh Thu 971276b599 [ADD] openerp/netsvc: use cgitb to format the exception sent to the client, code/idea by chs.
bzr revid: vmt@openerp.com-20110609073416-ml22a1vhtizl3z71
2011-06-09 09:34:16 +02:00
Vo Minh Thu e1e0860f1d [MERGE] res/partner/crm: removed unused code.
bzr revid: vmt@openerp.com-20110608150455-hd6tjghx938d94yh
2011-06-08 17:04:55 +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
Antony Lesuisse 28a37267e4 [IMP] ir_translation only display installed lang, context in read
bzr revid: al@openerp.com-20110608141806-oeixkg763vgmv2we
2011-06-08 16:18:06 +02:00
Yogesh (OpenERP) 04c0fc1931 Remove unused code.
lp bug: https://launchpad.net/bugs/792059 fixed

bzr revid: ysa@tinyerp.com-20110608124813-62yj6d75yxy8o0p0
2011-06-08 18:18:13 +05:30
Launchpad Translations on behalf of openerp 01dcbe5313 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110607043504-fva0ovzg24qy3nqd
2011-06-07 04:35:04 +00:00
Vo Minh Thu 00c2b7172b [MERGE] use drawCentredString instead of drawString for report header.
bzr revid: vmt@openerp.com-20110606123941-26v9uoetil2gc8ox
2011-06-06 14:39:41 +02:00
Vo Minh Thu cdf9746d8e [MERGE] res_widget: remove res.widget.user entries when user deleted.
bzr revid: vmt@openerp.com-20110606111057-g97n2woy1ljyt67k
2011-06-06 13:10:57 +02:00
Vo Minh Thu 6a2b93ea0d [REF] res_company: as part of the previous commit:
- dont use methods when plain values are ok (in _constraints),
- dont duplicate strings if it is not necessary.

bzr revid: vmt@openerp.com-20110606094338-58zoutk86hm0j68s
2011-06-06 11:43:38 +02:00
Vo Minh Thu 641f3a88f3 [MERGE] "%s" % a + b should be "%s" % (a + b).
bzr revid: vmt@openerp.com-20110606081752-crltlidap2t1hloj
2011-06-06 10:17:52 +02:00
Vo Minh Thu f2770c9ac4 [FIX] netrpc_server: close as soon as possible the socket, and do it after a communication-level exception.
lp bug: https://launchpad.net/bugs/785009 fixed

bzr revid: vmt@openerp.com-20110606074856-e726j4klc5ljiq5w
2011-06-06 09:48:56 +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
Vo Minh Thu ce5d00e03b [REF] res_lang: removed unused variable.
lp bug: https://launchpad.net/bugs/791756 fixed

bzr revid: vmt@openerp.com-20110603085758-ji277jy5mbn9wq3t
2011-06-03 10:57:58 +02: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 4b3aa9c764 [FIX] modules/loading: revert a change where db.initialize was removed:
- it should be removed
- but some code will test if the ir_module_module table exists
- and will force the demo data.

bzr revid: vmt@openerp.com-20110601113353-hdmyl4is9poss8hh
2011-06-01 13:33:53 +02:00
Olivier Dony a270d19d81 [IMP] ir.ui.view.custom: order by create_date descending
This way search(limit=1) will give you the latest customization for
a given user. This can be used by client side to allow multiple
customizations with multi-level undo.

bzr revid: odo@openerp.com-20110601105209-vtgf73reh90uipct
2011-06-01 12:52:09 +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
Vo Minh Thu 358f6881f3 [REF] openerp/report/render/render.py: removed silly main() method, rewrote french comment in english.
bzr revid: vmt@openerp.com-20110531152711-49kyo4xhtak3r874
2011-05-31 17:27:11 +02:00
Vo Minh Thu 6672e72c46 [FIX] tools/config: default values always override the config files:
- this bug was introduced by commit 3417.6.4 vmt@openerp.com-20110419134016-og6ye1hjrb0j52cl.

bzr revid: vmt@openerp.com-20110531125322-myptetqusymunily
2011-05-31 14:53:22 +02:00
Xavier Morel 5695adf5e6 [IMP] @editable on forms and fields is nonsense, on trees it should only be able to take the values 'top' and 'bottom'
bzr revid: xmo@openerp.com-20110531101518-1ycw1fjy5vczcf8g
2011-05-31 12:15:18 +02:00
Launchpad Translations on behalf of openerp 8dc31b78ab Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110531044735-dhu40as3jjdi6qwe
2011-05-31 04:47:35 +00:00
Vo Minh Thu 52731ee4b8 [MERGE] osv: osv classes merged inside orm classes.
bzr revid: vmt@openerp.com-20110530074205-98kdkwhpbu9e19qw
2011-05-30 09:42:05 +02:00
Yogesh (OpenERP) 7fbddd1003 [FIX] Company partner name print in center in header on report. use drawCentredString instead of drawString.
bzr revid: ysa@tinyerp.com-20110530053046-61zsy5nuz61i52dm
2011-05-30 11:00:46 +05:30
Launchpad Translations on behalf of openerp b166b367be Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110527044550-75mzo90wnocq320y
bzr revid: launchpad_translations_on_behalf_of_openerp-20110530045832-ce820mg8qb8eukga
2011-05-30 04:58:32 +00:00
Vo Minh Thu 3fa8c6beb7 [FIX] osv/ir_model: forgot to remove the module arg in ir_model.
bzr revid: vmt@openerp.com-20110527124051-hqc566wumejw4u1s
2011-05-27 14:40:51 +02:00
Vo Minh Thu 554b33978a [IMP] osv: removed unnecessary module arg, added comments.
bzr revid: vmt@openerp.com-20110527123236-tvd4jgco8iigmrxh
2011-05-27 14:32:36 +02:00
Raphael Collet dbdba64d8c [FIX] remove res.widget.user entries when user deleted
bzr revid: rco@openerp.com-20110527103002-3lb35jamn9v737ti
2011-05-27 12:30:02 +02:00
Vo Minh Thu ee58f9da5f [FIX] osv_pool: it appears it is necessary to have the model in the pool earlier on.
bzr revid: vmt@openerp.com-20110527100310-qw9760rd8spiwjgm
2011-05-27 12:03:10 +02:00
Vo Minh Thu a87ebe9600 [REF] osv:
- make it more explcicit in osv_pool that afreshly instanciated object is added to the pool
- osv_pool.init_set() is called just once with False, so
  no need to check if it is the first time it is called or
  if is called with True
- and rename it in do_parent_store as it is what it does.

bzr revid: vmt@openerp.com-20110526210532-a8i91shptz5h4k48
2011-05-26 23:05:32 +02:00
Vo Minh Thu 131def0f9e [REF] osv: osv classes merged inside orm classes.
- osv_base removed
- osv_memory and osv are synonyms for orm_memory and orm.

bzr revid: vmt@openerp.com-20110526182445-po5xqt7sjcmzompl
2011-05-26 20:24:45 +02:00
Vo Minh Thu a2087303c8 [REF] osv: factored out duplicated createInstance methods.
bzr revid: vmt@openerp.com-20110525221907-48dgtocw3wsnakow
2011-05-26 00:19:07 +02:00
Vo Minh Thu 2f6dff7690 [MERGE] moved around some code (preparing for some refactoring) (large diff).
bzr revid: vmt@openerp.com-20110525160607-45pq13910rduijkk
2011-05-25 18:06:07 +02:00
Vo Minh Thu 959ff88d64 [MERGE] orm: correctly store in db the translate flag.
bzr revid: vmt@openerp.com-20110525154411-c6eg6mpo31yseldi
2011-05-25 17:44:11 +02:00
Vo Minh Thu ce664cb4b1 [FIX] ir: forgot to remove the parent module openerp.ir.
bzr revid: vmt@openerp.com-20110525152640-hinzi1ry567jzwix
2011-05-25 17:26:40 +02:00
Vo Minh Thu 5d83528841 [MERGE] merged trunk
bzr revid: vmt@openerp.com-20110525151722-w9qt1qjficpv71re
2011-05-25 17:17:22 +02:00
Vo Minh Thu 823abab958 [MERGE] merged changes from 6.0
bzr revid: vmt@openerp.com-20110525151149-78gkoolppmjekrl6
2011-05-25 17:11:49 +02:00
Vo Minh Thu 6d0f31fbd1 [MERGE] don't assign a reused node.text value.
lp bug: https://launchpad.net/bugs/640677 fixed

bzr revid: vmt@openerp.com-20110525080921-fyrkdkdm3niupn1f
2011-05-25 10:09:21 +02:00
Vo Minh Thu 1122a2361a [MERGE] added Ugandan Shilling and changed the CFA currency into XOF and XAF.
bzr revid: vmt@openerp.com-20110525074840-xb6j67fvudodkb1z
2011-05-25 09:48:40 +02:00
Vo Minh Thu 7dbb430fba [MERGE] ir_cron: expose the method (that can be extended) called when an exception occurs on a callback.
bzr revid: vmt@openerp.com-20110524110707-hfdulmtxprhxx6bw
2011-05-24 13:07:07 +02:00
Vo Minh Thu 3286ef93b8 [IMP] orm: added an assert on the return value of function fields.
bzr revid: vmt@openerp.com-20110524101810-fdrj5hqxrc9c6856
2011-05-24 12:18:10 +02:00
Vo Minh Thu 30dd902e01 [MERGE] orm: at csv import, properly report lines with less columns.
bzr revid: vmt@openerp.com-20110523143929-1k23u8oqzvmirqw1
2011-05-23 16:39:29 +02:00
Vo Minh Thu 4f2d05e968 [FIX] orm: correctly store in db the translate flag:
- added the "translate" column to ir_model_fields in base.sql
- modified orm.py to correctly set that column
- this is based on a patch by xrg.

lp bug: https://launchpad.net/bugs/780584 fixed

bzr revid: vmt@openerp.com-20110523132153-njovr5ynt66k8d81
2011-05-23 15:21:53 +02:00
Vo Minh Thu 5238385e6a [MERGE] ir.values: make sure we return the user-specific default value.
bzr revid: vmt@openerp.com-20110523120940-9kgn9wxkzwbymrso
2011-05-23 14:09:40 +02:00
Vo Minh Thu 00fc2c908f [MERGE] res.user: fix the call to create_user:
Corrected the dictionary values passed to res_users.create()
from tuples (id,name) to ids and from list of ids to tuples
(6,0,ids) (accounting for the discrepancy between read/write
values).
Added a call to that mathod from a yml test.

bzr revid: vmt@openerp.com-20110523111953-umzk6kow40wxh607
2011-05-23 13:19:53 +02:00
Vo Minh Thu b6214d8c3c [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110523084106-2sodtiqaprvqndjr
2011-05-23 10:41:06 +02:00