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
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
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
d925235e62
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20111222102555-bydsozbdu6urkj31
2011-12-22 11:25:55 +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
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
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
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
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
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
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
f8e797ea28
[MERGE] fields.property: correctly tests for many2one/relative fields.
...
bzr revid: vmt@openerp.com-20111006074753-e505g95tcz8js5ju
2011-10-06 09:47:53 +02:00
Vo Minh Thu
491dc693d6
[IMP] fields.property: be more explicit when testing if something is a browse_record.
...
bzr revid: vmt@openerp.com-20111005154857-ic3yzb3dead33us3
2011-10-05 17:48:57 +02:00
Vo Minh Thu
c629763a0f
[FIX] two loops one loop (a previous commit) was wrongly done :(.
...
bzr revid: vmt@openerp.com-20111005135549-xvhtt57fl1ib7o6e
2011-10-05 15:55:49 +02:00
Vo Minh Thu
7ccc7f388f
[IMP] fields.reference: two loops one loop.
...
bzr revid: vmt@openerp.com-20111005105103-cutnuvfkgsjej3vc
2011-10-05 12:51:03 +02:00
Yogesh (OpenERP)
2fd484263a
[MERGE] Merge wtih trunk server upto revision no 3722.
...
bzr revid: ysa@tinyerp.com-20111005071001-x8cdfvarwfk4brkb
2011-10-05 12:40:01 +05:30
Yogesh (OpenERP)
4de6b85979
[FIX] fix problem of poperty filed. if property field have a default value then check the id.
...
bzr revid: ysa@tinyerp.com-20111005065155-nfwersyv05ddjq40
2011-10-05 12:21:55 +05:30
Yogesh (OpenERP)
92b6181556
[MERGE] Merge wtih trunk server upto revision no 3722.
...
bzr revid: ysa@tinyerp.com-20111005055756-h6fp84gpjwg42w2v
2011-10-05 11:27:56 +05:30
Olivier Dony
f4ffbd79f4
[IMP] field.m2m: better doc for auto-named m2m relationships
...
bzr revid: odo@openerp.com-20111003132653-413c41exoj64q416
2011-10-03 15:26:53 +02:00
Olivier Dony
babb7aa0ec
[FIX] fields: m2m SQL names may be dynamic now, care for it in field_to_dict()
...
Also cleaned up field_to_dict signature and callers to
honor conventions.
lp bug: https://launchpad.net/bugs/863019 fixed
bzr revid: odo@openerp.com-20110930112348-4c8undh1d6h1y3ps
2011-09-30 13:23:48 +02:00
Olivier Dony
ad4a216e7d
[IMP] fields.m2m: support implicit generation of m2m SQL names
...
This allows for transparent inheritance of m2m columns via _inherit,
as long as the m2m relationship table is not explicitly named in
the declaration.
bzr revid: odo@openerp.com-20110926171451-n2jg8pbl5mq715vk
2011-09-26 19:14:51 +02:00
Olivier Dony
f81fe2dc6e
[IMP] orm: enforce proper m2o ondelete rules between TransientModels and Models
...
bzr revid: odo@openerp.com-20110926111226-fu834vqwm4gbxk8l
2011-09-26 13:12:26 +02:00
Olivier Dony
f2f3c916c9
[REM] orm: m2m._no_foreign_keys attribute removed, replaced by SQL check
...
bzr revid: odo@openerp.com-20110923162929-nhl32ie6zc6uuj8h
2011-09-23 18:29:29 +02:00
Olivier Dony
0d3085d14f
[MERGE] sync with latest trunk
...
bzr revid: odo@openerp.com-20110922154155-jq811w768d9zfgim
2011-09-22 17:41:55 +02:00
Naresh (OpenERP)
1d71f8484a
[MERGE FROM TRUNK]
...
bzr revid: nch@tinyerp.com-20110919093224-5i3dslmw5ubatdjt
2011-09-19 15:02:24 +05:30
sebastien beau
926980b325
[IMP] add a new class sparse
...
bzr revid: sebastien.beau@akretion.com.br-20110917100538-63iyfpcuyhff4z5d
2011-09-17 12:05:38 +02:00
Vo Minh Thu
cd89f5a5a4
[MERGE] fields: correct (5,_) operation on many2many (delete instead of set null).
...
lp bug: https://launchpad.net/bugs/818189 fixed
bzr revid: vmt@openerp.com-20110915152052-ujbfj2zgv06eairy
2011-09-15 17:20:52 +02:00
Olivier Dony
7d3d3a6aba
[FIX] fields.function: type=binary: workaround for the low byte values (<=0x1f) unsupported in XML
...
We have a workaround in place for fields.function of binary type
that may return values that are invalid in XML documents, and thus
in our XML-RPC protocol. But out workaround failed to care for the
invalid XML codepoints (below 0x1f) that are well valid in UTF-8
encoding.
Added a sanity check for that as well, using a terrible workaround
for this last resort case: b64-encode the bytes, to avoid crashing
the request.
bzr revid: odo@openerp.com-20110906173140-vc4tl6wstzt8h06o
2011-09-06 19:31:40 +02:00
sebastien beau
4fc1ffe10a
[REF] refactor serialized field based on a patch sent by xrg by email, thanks xrg ;)
...
bzr revid: sebastien.beau@akretion.com.br-20110904234304-6uablzky9kwn5x3k
2011-09-05 01:43:04 +02:00
Vo Minh Thu
e1b2dec200
[IMP] orm: option to make many2many relation tables without foreign key constaint.
...
The option is not completely flexible (no possibility to choose to have a foreign
key on one of the fields. No similar option is provided for many2one either.
It is seldom used (e.g. in account_followup addons).
bzr revid: vmt@openerp.com-20110829094354-0yf6t6329j8e765q
2011-08-29 11:43:54 +02:00
Vo Minh Thu
66f9426e9b
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110826140542-5ii29az0e6czr29l
2011-08-26 16:05:42 +02:00
Naresh (OpenERP)
8d0cf999ac
[FIX]:_inherits for multilevel inheritence
...
lp bug: https://launchpad.net/bugs/823691 fixed
bzr revid: nch@tinyerp.com-20110826103516-o220jqwqdr3uwjhn
2011-08-26 16:05:16 +05:30
Vo Minh Thu
e10676bf66
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110826074112-b2a4xm0cewwjqpcx
2011-08-26 09:41:12 +02:00
Xavier Morel
b5a429d008
[FIX] fnct_inv in client actions params, fix docstring for fnct_inv (fnct_inv only takes a single record id, not a sequence of ids)
...
bzr revid: xmo@openerp.com-20110825123049-bmvebm86gqgr6w43
2011-08-25 14:30:49 +02:00
Vo Minh Thu
c086f79ae1
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110822111142-11251h9i4ueguq6g
2011-08-22 13:11:42 +02:00
Olivier Dony
8ac7724a67
[IMP] fields.function: don't wrap int values unless really needed
...
There was no need to wrap/cast int values for values less
than 2^31-1, which the highest XML-RPC int value.
Also, instead of wrapping them in strings, we can use
float values, which are 64bits based in the XMLRPC standard,
and closer to the real value (for comparisons, etc.).
Added note for integer_big, as a reminder of this possible
issue.
bzr revid: qdp-launchpad@openerp.com-20110818120550-ulvffm6ka9f3c5ym
2011-08-18 14:05:50 +02:00
gpa
5966666250
[FIX] Fixed problem of unlink tuple (5) in many2many
...
lp bug: https://launchpad.net/bugs/818189 fixed
bzr revid: gpa@tinyerp.com-20110817093542-bi6ges077dc7un3e
2011-08-17 15:05:42 +05:30
Vo Minh Thu
c462ff9ad4
[REF] fields: removed osv_memory-related methods ({set,get,search}_memory()).
...
bzr revid: vmt@openerp.com-20110816110234-8jw4pxjklip4kf43
2011-08-16 13:02:34 +02:00
Vo Minh Thu
83f10149d0
[REF] fields: renamed orm_template in orm (in the docstrings).
...
bzr revid: vmt@openerp.com-20110812143106-jk9ijbtc2yhal1sp
2011-08-12 16:31:06 +02:00
Vo Minh Thu
1f6833e708
[IMP] fields.py: removed unused import (and cyclic dependency!).
...
bzr revid: vmt@openerp.com-20110712083711-6serbntp8y5fn3qy
2011-07-12 10:37:11 +02:00
Vo Minh Thu
cadfd7d85f
[FIX] fields.property: typos/misnamed variables.
...
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Vo Minh Thu
e3725cb3a6
[FIX] fields.property: set the m2o fields as False instead of browse_null.
...
bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
2011-07-11 16:25:03 +02:00
Vo Minh Thu
5265ceeffc
[IMP] fields.py: removed unnecessary initialization.
...
bzr revid: vmt@openerp.com-20110711131804-1p9qk2j9zp2uuevy
2011-07-11 15:18:04 +02:00
Vo Minh Thu
2fe91df6ad
[IMP] fields.py: tidying up before merging in trunk.
...
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP)
b363bfb392
[FIX] openerp/osv/fields.py: _get_defaults() and _fnct_read() of property fields cleaned and fixed as requested on merge proposal
...
-_get_defaults(): improved docstring in order to follow RST docstring format
-_get_defaults(): removed weird loop in _get_defaults as there is always 1 element only
-_fnct_read(): make name_get as root
-_fnct_read(): check existence for m2o fields (as root)
-_fnct_read(): check for type of property field is now done on reliable information
bzr revid: qdp-launchpad@openerp.com-20110708125106-0q0wj5zncaa7yp0w
2011-07-08 14:51:06 +02:00
Quentin (OpenERP)
760471863a
[FIX] fields.py: reading and writing on ir.property fields
...
bzr revid: qdp-launchpad@openerp.com-20110707140359-mxj1or10gzvde3te
2011-07-07 16:03:59 +02:00
Quentin (OpenERP)
1e57f21cb7
[IMP] openerp/osv/fields.py: reading a property field is now using the function get() of ir.property object.
...
bzr revid: qdp-launchpad@openerp.com-20110707133733-aua4dygdjjmhryap
2011-07-07 15:37:33 +02:00
niv-openerp
f7851b64ae
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110705085322-9maq2605k6dvnfho
2011-07-05 10:53:22 +02:00