Vo Minh Thu
daa41b61c1
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120110154333-kdwsff0faftcwvku
2012-01-10 16:43:33 +01:00
Vo Minh Thu
013794b978
[IMP] orm: cosmetics (and the runbot will build this branch again).
...
bzr revid: vmt@openerp.com-20120110153448-ot1vpcmwjbeykx9t
2012-01-10 16:34:48 +01:00
Olivier Dony
4dfc1e53f5
[FIX] fields.o2m: respect static @domain when clearing a field (writing [(5,..)])
...
bzr revid: odo@openerp.com-20120109140432-3np49l2esds0l1yb
2012-01-09 15:04:32 +01:00
niv-openerp
9b998a6551
[fix] forgot debugging lines
...
bzr revid: nicolas.vanhoren@openerp.com-20120105161621-ej6wkj5g6qi052rs
2012-01-05 17:16:21 +01:00
niv-openerp
4d3387c54c
[imp] added service in object_service to be able to call a method specifying kwargs
...
bzr revid: nicolas.vanhoren@openerp.com-20120105160351-0xy697sjeihplx6v
2012-01-05 17:03:51 +01:00
Olivier Dony
bdce754108
[IMP] cleanup deprecated method=True param for function fields
...
bzr revid: odo@openerp.com-20120104133027-oaydmngk2dfc22mk
2012-01-04 14:30:27 +01:00
Fabien Pinckaers
91cafbee7e
[FIX] import/export fully working through web interface
...
bzr revid: fp@tinyerp.com-20111228205757-vxdw1j6gcsyvjj3m
2011-12-28 21:57:57 +01:00
Fabien Pinckaers
ae92ec17ea
[FIX] import/export
...
bzr revid: fp@tinyerp.com-20111228194506-nag2kqk1w1uyk43p
2011-12-28 20:45:06 +01:00
Olivier Dony
a58a2a5e18
[MERGE] orm: dead code removal, courtesy of Olivier Macchioni
...
bzr revid: odo@openerp.com-20111222212859-z8svmrd3yosduelo
2011-12-22 22:28:59 +01:00
Olivier Dony
482aee1951
[IMP] fields.sparse: custom sparse field creation now working + handle deleted resources properly
...
bzr revid: odo@openerp.com-20111222182405-425rzyl6idg9aocu
2011-12-22 19:24:05 +01:00
Olivier Dony
24b283567d
[FIX] orm: typos
...
bzr revid: odo@openerp.com-20111222182023-kspwaukocijhh4cq
2011-12-22 19:20:23 +01:00
Olivier Dony
d925235e62
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20111222102555-bydsozbdu6urkj31
2011-12-22 11:25:55 +01:00
Olivier Dony
250772d403
[FIX] read_group: NULL->False for grouped boolean fields
...
We need to coalesce NULLs to False when grouping
boolean fields, otherwise we get duplicate groups
sharing the same rows.
bzr revid: odo@openerp.com-20111220151131-xir8dv7sdy9hbrfx
2011-12-20 16:11:31 +01:00
Fabien Pinckaers
3d364c3de1
[IMP] allow non integer for ID's
...
bzr revid: fp@tinyerp.com-20111219220954-mlqe3f6gkonlzor3
2011-12-19 23:09:54 +01:00
Olivier Macchioni
f3eedcd6e3
[FIX] removed dead code
...
bzr revid: mac@olivier-macchionis-macbook-pro-2.local-20111214222102-s22izy21xejtwrmu
2011-12-14 23:21:02 +01:00
Naresh (OpenERP)
74fbbc36e1
[FIX]:Properties should be deleted when the related record is deleted
...
lp bug: https://launchpad.net/bugs/891580 fixed
bzr revid: nch@tinyerp.com-20111202102202-0jzzlqu68fypbbl3
2011-12-02 15:52:02 +05:30
Olivier Dony
7fa02d56b2
[MERGE] Bug 303455: orm.create() - use local before inherited, courtesy of Thibaut DIRLIK (Logica)
...
bzr revid: odo@openerp.com-20111201121503-bf7671is06atteb4
2011-12-01 13:15:03 +01:00
Xavier Morel
84004e8923
[REM] import_data: unused variables, redundant parens and variables
...
bzr revid: xmo@openerp.com-20111201121257-3uq3fyjumd9bvi9a
2011-12-01 13:12:57 +01:00
Xavier Morel
f17633dad7
[FIX] correctly restore partial import index when restarting an import
...
bzr revid: xmo@openerp.com-20111201121040-c0547g8ev38r6u7t
2011-12-01 13:10:40 +01:00
Olivier Dony
f93bb856e2
[MERGE] Fix bug 891544 - prevent double-encoding of binary fields
...
lp bug: https://launchpad.net/bugs/891544 fixed
bzr revid: odo@openerp.com-20111128124535-s8cesplj379ssfqm
2011-11-28 13:45:35 +01:00
Naresh (OpenERP)
c11d1f06a9
[FIX]:Incorect format of report in OpenOffice
...
lp bug: https://launchpad.net/bugs/891544 fixed
bzr revid: nch@tinyerp.com-20111128100836-ad40b5hvoeqyoggm
2011-11-28 15:38:36 +05:30
Olivier Dony
90041e5d81
[IMP] read_group: pass superuser uid to group_by_full methods to avoid access right issues
...
This helps avoid access right issues in restricted
contexts, such as embedded web client, or shared
access (via portal or share wizard).
bzr revid: odo@openerp.com-20111123133312-a4ywnivnex97xtk2
2011-11-23 14:33:12 +01:00
Olivier Dony
a50af56a05
[FIX] orm.read_group: fix merge logic for read_group_full:
...
- Properly merge results with list of values, even with reversed sort
- Pass `read_group_order` to `_group_by_full` implementations to let them
handle sorting if they want.
bzr revid: odo@openerp.com-20111121164326-un722g5nsuzq94m5
2011-11-21 17:43:26 +01:00
Olivier Dony
e17b51e384
[FIX] orm.read_group: check for empty groupby list
...
This is very ugly and needs a real refactoring,
just adding one more test for the time being.
bzr revid: odo@openerp.com-20111118153333-2skgbd197q8tb7uc
2011-11-18 16:33:33 +01:00
Olivier Dony
57d0d62b38
[MERGE] orm.read_group: partial refactoring, by xmo
...
bzr revid: odo@openerp.com-20111118152629-o4ult41v905dfj1t
2011-11-18 16:26:29 +01:00
Olivier Dony
ca458dd539
[FIX] orm.read_group: fix issues in read_group_full and rewrite/cleanup
...
Attempt to make it into a more maintainable/readable
separate method.
bzr revid: odo@openerp.com-20111118133642-b3126a5sph8bivmu
2011-11-18 14:36:42 +01:00
Olivier Dony
29574262c5
[FIX] fields.related: lazy init should avoid race conditions as much as possible
...
bzr revid: odo@openerp.com-20111118131104-a16vg7q2ws8se2ob
2011-11-18 14:11:04 +01:00
Fabien Pinckaers
34a9ecf339
fix
...
bzr revid: fp@tinyerp.com-20111118121103-vmlus5c14icgpvdv
2011-11-18 13:11:03 +01:00
Olivier Dony
ca5fcc2bdf
[IMP] orm,fields: some cleanup for sparse field implementation (wip)
...
bzr revid: odo@openerp.com-20111117143010-9nv7inr5ijzykgem
2011-11-17 15:30:10 +01:00
Olivier Dony
3bf3279f25
[MERGE] Implementation of sparse field (to review), by Sebastien Beau, Akretion
...
bzr revid: odo@openerp.com-20111116172525-rmri79n9hpf2plwg
2011-11-16 18:25:25 +01:00
Olivier Dony
61c0e012b9
[MERGE] warn when create()/write() touches unknown field, courtesy of Stefan Rijnhart (Therp)
...
A patch will follow in addons to get rid of most of the
warnings introduced here.
bzr revid: odo@openerp.com-20111116113858-52nzw58ts7xnlxhe
2011-11-16 12:38:58 +01:00
Christophe Simonis
19e7261bc0
[FIX] group_by_full
...
bzr revid: chs@openerp.com-20111115155355-s7j3s27i2hl7xi11
2011-11-15 16:53:55 +01:00
Xavier Morel
c83d6d88a0
[IMP] selection of fields to aggregate in read_group
...
bzr revid: xmo@openerp.com-20111115120028-wal8o839s4u427m3
2011-11-15 13:00:28 +01:00
Xavier Morel
2b7a072a3e
[IMP] orm: make creation of dict from key names (with constant value) clearer
...
also only generate False values for float and integer fields, since they're the only aggregated values in the first place
bzr revid: xmo@openerp.com-20111115114527-t92a37kdw4yqqs4p
2011-11-15 12:45:27 +01:00
Fabien Pinckaers
1c2ab2927d
unusedcode
...
bzr revid: fp@tinyerp.com-20111114001216-etl5g0dl3ya1xfvs
2011-11-14 01:12:16 +01:00
Fabien Pinckaers
e25fe1f261
[FIX] count 0, need to fix the web client
...
bzr revid: fp@tinyerp.com-20111113124848-r1youtgj7c5li8b2
2011-11-13 13:48:48 +01:00
Fabien Pinckaers
8ea267b822
[IMP] _group_by_full implementation
...
bzr revid: fp@tinyerp.com-20111113121405-oa9ggpf115gv3cbe
2011-11-13 13:14:05 +01:00
niv-openerp
dbb82b089b
[fix] exception when querying a tree view for an osv which does not contain any column (common in the wizards)
...
lp bug: https://launchpad.net/bugs/877989 fixed
bzr revid: nicolas.vanhoren@openerp.com-20111110135106-crieyt6cnscqocs5
2011-11-10 14:51:06 +01:00
Olivier Dony
ca05a8dbc6
[ADD] orm.fields_get: include `relation_field` for one2many fields
...
bzr revid: odo@openerp.com-20111109155645-f7u5z14xhju271d5
2011-11-09 16:56:45 +01:00
Vo Minh Thu
b00473034a
[IMP] typo.
...
bzr revid: vmt@openerp.com-20111109123042-9vtfp6uv7qsgy4pz
2011-11-09 13:30:42 +01:00
Stefan Rijnhart
998add6e89
[FIX] replace exception by warning, for friendly deprecation
...
bzr revid: stefan@therp.nl-20111102202254-jllcl905swnwatm5
2011-11-02 21:22:54 +01:00
Guewen Baconnier
a59c66ed40
[FIX] fields.sparse: do not store the keys with null values anymore. We don't need them (and this will help to keep clean json fields) and this caused problems at the read from client because None values were sent by XMLRPC
...
bzr revid: guewen.baconnier@camptocamp.com-20111101151639-rcos08pbnxhhxfxa
2011-11-01 16:16:39 +01:00
Stefan Rijnhart
c9b91cae01
[FIX] model and field name were reversed in exception message
...
bzr revid: stefan@therp.nl-20111101141446-acxui2dymoul71ma
2011-11-01 15:14:46 +01:00
Stefan Rijnhart
65f4975ac1
[FIX] Raise when an unknown field is being written to
...
lp bug: https://launchpad.net/bugs/727727 fixed
bzr revid: stefan@therp.nl-20111101135731-uo203jmag5nuf56p
2011-11-01 14:57:31 +01:00
Olivier Dony
956ed719ae
[IMP] fields.boolean,integer,float: warning when required=True, as it has no effect
...
A PendingDeprecationWarning is used in order to reduce the
verbosity of the logging, and to indicate that we might
forbid passing required=True in a future OpenERP version
for fields types where it makes no sense.
bzr revid: odo@openerp.com-20111021142836-0k4qruhe1vgodysu
2011-10-21 16:28:36 +02:00
Xavier Morel
e317c222a1
[IMP] alias some values in data import, for readability
...
bzr revid: xmo@openerp.com-20111019114618-6ih4wgfr5hu1kgiy
2011-10-19 13:46:18 +02:00
Xavier Morel
b0a92831b3
[IMP] iterate over list indexes + ids via enumerate() rather than via range(len()) + __getitem__
...
bzr revid: xmo@openerp.com-20111019110215-9jykf1xrzavh00j2
2011-10-19 13:02:15 +02:00
Quentin (OpenERP)
2be7586c54
[FIX] fields.related: fix example in docstring
...
bzr revid: qdp-launchpad@openerp.com-20111013093423-lynuxoan01327jv9
2011-10-13 11:34:23 +02:00
Vo Minh Thu
bfbfbc4ac6
[FIX] orm.copy(): corrected return value in docstring.
...
bzr revid: vmt@openerp.com-20111012090357-2lt8md5s37qp2vm1
2011-10-12 11:03:57 +02:00
Olivier Dony
76c702ca3c
[FIX] Model.import_data docstring: cleanup + clear RST warnings for autodoc
...
The pipe character is taken as an inline substitution
marker, and is easy to avoid in most cases except within
literal blocks.
bzr revid: odo@openerp.com-20111011171148-rluwokcsx7i38i6e
2011-10-11 19:11:48 +02:00