Commit Graph

141 Commits

Author SHA1 Message Date
Quentin (OpenERP) 31d05360b2 [REF] fields: removed deprecated view_load attribute and removed useless first argument in property fields definition
bzr revid: qdp-launchpad@openerp.com-20130619091332-29pisdnyfemn1u3d
2013-06-19 11:13:32 +02:00
Raphael Collet 09be864f1d [IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-29 15:07:23 +01:00
Olivier Dony 8e5f0e2ce2 [FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user TZ if context TZ is missing
This takes care of cases where the context is missing,
e.g. for workflow-based operations, and is similar
to the way tools.translate._() falls back to the user
language.

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

bzr revid: odo@openerp.com-20130111175717-u8r1t7s8872bz2rx
2013-01-12 06:57:17 +13:00
Raphael Collet 3040114651 [MERGE] trunk-style-improvements-xmo (Python stylistic improvement)
bzr revid: rco@openerp.com-20121217110150-4ijt04ic17miktq7
2012-12-17 12:01:50 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Xavier Morel a5cb8460c6 [FIX] __init__ can't return values
bzr revid: xmo@openerp.com-20121214122525-bd5207viiz4vqi8x
2012-12-14 13:25:25 +01:00
Vo Minh Thu 1a4fd71880 [FIX] test_fields: _all_columns must be modified similarly to _columns.
(Because of the newly added method check_field_access_rights().)

bzr revid: vmt@openerp.com-20121212134755-ykfdykqepwzti5uf
2012-12-12 14:47:55 +01:00
Thibault Delavallée f0abd6f49e [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121210083805-1t45n6xxmptpo28o
2012-12-10 09:38:05 +01:00
Antony Lesuisse 2f1f17ead9 [IMP] fields warning display args to locate them
bzr revid: al@openerp.com-20121209193952-ukk0aie3d8fg18q2
2012-12-09 20:39:52 +01:00
Thibault Delavallée ea01dfe9dd [CLEAN] fields.py: added auto_join in one2many and many2one __init__, binded on _auto_join. Added some short explanations in fields.py about the attribute.
bzr revid: tde@openerp.com-20121205153410-07vo3j1c641xgmda
2012-12-05 16:34:10 +01:00
Thibault Delavallée 638fc20618 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121130093658-uvm0gbo90su88psh
bzr revid: tde@openerp.com-20121203131657-4gcp4wreylnmw2or
bzr revid: tde@openerp.com-20121204082427-7zdzn6f21xzvxby9
2012-12-04 09:24:27 +01:00
Thibault Delavallée 1bda6f44db [ADD] fields.py: added _auto_join attribute. This attribute will be used to automatically generate join queries, instead of doing sub-queries returning an 'id in' domain.
bzr revid: tde@openerp.com-20121127153432-3ttqm8pmgk3l7a77
2012-11-27 16:34:32 +01:00
Olivier Dony 7f5ad72429 [MERGE] Forward-port 6.1 bugfixes up to rev. 4307
rev.4307 = rev-id launchpad_translations_on_behalf_of_openerp-20121125065030-g5if5pybr61la4yj

bzr revid: odo@openerp.com-20121126160320-t2suuik6lhk6wl0x
bzr revid: odo@openerp.com-20121126161836-mv8yymzgbnmif4ve
bzr revid: odo@openerp.com-20121126162023-ejvsapwouyudw6c6
bzr revid: odo@openerp.com-20121126181527-d4yx15372bis77qj
2012-11-26 19:15:27 +01:00
Christophe Matthieu 248f81277f [FIX] fields.html: behave as fields.text for empty values: store NULL
bzr revid: chm@openerp.com-20121119104332-bqm81nuik6pqsbf9
2012-11-19 11:43:32 +01:00
Thibault Delavallée 62c419e66f [IMP] tools: mail: improved append_content_to_html, including plaintext2html. Updated tests.
bzr revid: tde@openerp.com-20121109123521-e04g4zrhtv947l1r
2012-11-09 13:35:21 +01:00
Thibault Delavallée 8a1a612fba [FIX] fields.py: html_sanitize now in mail file.
bzr revid: tde@openerp.com-20121106122758-iwyxmedgnznpjyna
2012-11-06 13:27:58 +01:00
Raphael Collet 750ef9d931 [IMP] fields.related._fnct_read: small improvements
bzr revid: rco@openerp.com-20121105131712-sc70thn3wpyq6o7y
2012-11-05 14:17:12 +01:00
Raphael Collet 52c29ae1c0 [FIX] fields.related._fnct_read: fix handling of type many2one
bzr revid: rco@openerp.com-20121105094929-oz7trjzwlqw90499
2012-11-05 10:49:29 +01:00
Raphael Collet db13e8591a [FIX] fields.related._fnct_write: handle the case where ids is a single id
bzr revid: rco@openerp.com-20121105082259-rcmcjs5n1eimtcpl
2012-11-05 09:22:59 +01:00
Raphael Collet 7e7d877e17 fields.related: simplify read and write methods
bzr revid: rco@openerp.com-20121029153504-157ss9948o86uv6z
2012-10-29 16:35:04 +01:00
Raphael Collet 42f0962f99 [MERGE] from trunk
bzr revid: rco@openerp.com-20121029153047-sd8i97sfkdy1wcb1
2012-10-29 16:30:47 +01:00
Xavier Morel 1e4a677f05 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154436-wz29sdkbs9vvhjba
2012-10-10 17:44:36 +02:00
Olivier Dony bd31b7c553 [API/IMP] fields: cleanup field_to_dict + make @deprecated available in fields_get()
Renamed the m2m extra info keys, as their names
were quite confusing (third_table?), + removed
the "func_obj" key for function fields, as
it was a duplicate of the "relation" kay that
is already present for all relationship fields.
These renames should not break anything, as this
info should only be used for debug, but they still
constitute an API backwards-incompatible change.

bzr revid: odo@openerp.com-20120926130942-doauqgh6v35vhi29
2012-09-26 15:09:42 +02:00
Xavier Morel 9805c665c8 [ADD] big bit on new import: pretty much everything but o2m
bzr revid: xmo@openerp.com-20120919114047-w4paoim95oxr91zb
2012-09-19 13:40:47 +02:00
Olivier Dony a4f30bf11f [IMP] fields: review/simplify patch for callable domains on fields.one2many
bzr revid: odo@openerp.com-20120905231232-u6dx3ak9b0y95zvl
2012-09-06 01:12:32 +02:00
Thibault Delavallée 12294252d4 [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120903081949-ucy4e1kpbb30dhko
2012-09-03 10:19:49 +02:00
Stephane Wirtel b3988436cb [REF] Replace the user id 1 by openerp.SUPERUSER_ID
bzr revid: stw@openerp.com-20120831135309-o4plzf5wp0kyuzgf
2012-08-31 15:53:09 +02:00
Fabien Pinckaers f21f1a68aa fix
bzr revid: fp@tinyerp.com-20120820132909-iw8faaon2z4c5e77
2012-08-20 15:29:09 +02:00
Fabien Pinckaers 64dc05afc6 fix
bzr revid: fp@tinyerp.com-20120820132501-7724jwavhzan3xyp
2012-08-20 15:25:01 +02:00
Fabien Pinckaers 1bd841d101 fix
bzr revid: fp@tinyerp.com-20120820131921-7ydvs9x784t4hn4l
2012-08-20 15:19:21 +02:00
Fabien Pinckaers 0d5a185956 fix
bzr revid: fp@tinyerp.com-20120820131726-7iassml4p93z7qsg
2012-08-20 15:17:26 +02:00
Fabien Pinckaers a054299277 imp
bzr revid: fp@tinyerp.com-20120820110455-jelu0xl7jil36q18
2012-08-20 13:04:55 +02:00
Fabien Pinckaers 6021b4473a [IMP] message_read on mail.message
bzr revid: fp@tinyerp.com-20120820105252-o1eqy5yfqb66hga9
2012-08-20 12:52:52 +02:00
Fabien Pinckaers 03f4b992ad [IMP] need action & mails
bzr revid: fp@openerp.com-20120819145928-5bw5lo6dn4ni4gl7
2012-08-19 16:59:28 +02:00
Thibault Delavallée 65ef813eb0 [MERGE] Merged with main server.
bzr revid: tde@openerp.com-20120815193149-k1ue0t3i035gvyu9
2012-08-15 21:31:49 +02:00
niv-openerp 1885387ace [IMP] added html field
bzr revid: nicolas.vanhoren@openerp.com-20120814130656-4pa91mud8u30mqr5
2012-08-14 15:06:56 +02:00
Thibault Delavallée c9fda0b13a [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120813181359-s0hhsdp6ev7dtznr
bzr revid: tde@openerp.com-20120814114047-z3guxfe9zxmsrk46
2012-08-14 13:40:47 +02:00
niv-openerp 11780a2267 Added some code to sanitize html
bzr revid: nicolas.vanhoren@openerp.com-20120813125307-d8cycdvtd7ad0f8e
2012-08-13 14:53:07 +02:00
niv-openerp 7341bd30cc Added html field type
bzr revid: nicolas.vanhoren@openerp.com-20120813114619-lqr9zu0rkz6737rp
2012-08-13 13:46:19 +02:00
Thibault Delavallée a82ae8d83e [CLEAN] Removed unnecessary \(.
bzr revid: tde@openerp.com-20120809144526-8mhbrr56mfjodygq
2012-08-09 16:45:26 +02:00
Thibault Delavallée 5ce0720b75 [IMP] fields: many2many: extracted query generation, to ease overrides.
bzr revid: tde@openerp.com-20120809144203-sm93gsl2db608z85
2012-08-09 16:42:03 +02:00
Thibault Delavallée 616e7a92ec [IMP] orm: added a deprecated attribute on fields. If not False, is a string, and make the ORM print a warning telling the field is deprecated.
Use: 'my_field': fields.char('Old field', size=64, deprecated="This field will be removed as of version 42 of OpenERP. Please update your module to use 'my_new_field' instead.")

bzr revid: tde@openerp.com-20120809083103-pjc9ynvmtojnfnah
2012-08-09 10:31:03 +02:00
Antony Lesuisse 67a9ddd3f8 [REM] fields float integer useless warning, required can be used to color the field in blue on form view
bzr revid: al@openerp.com-20120806104514-3cx1dm2bewhmlvbo
2012-08-06 12:45:14 +02:00
Olivier Dony da9ccf503a [FIX] fields.reference: missing coercion to int for res_id, as pointed out by XMO
bzr revid: odo@openerp.com-20120803134111-jrzrszqobm0r02on
2012-08-03 15:41:11 +02:00
Olivier Dony bc70c8711b [IMP] name_get: support more field types and improve previous name_get changes
bzr revid: odo@openerp.com-20120802170244-t1z5gogwgybtavrm
2012-08-02 19:02:44 +02:00
Xavier Morel ce02c0887a [IMP] coerce 'falsy' char sizes to None
Otherwise users using fields.char(size=False) will see their content disappear without warning, not cool

bzr revid: xmo@openerp.com-20120723140502-nrtgw0o47ewj25qa
2012-07-23 16:05:02 +02:00
Xavier Morel 8b0f8a0992 [IMP] replace equality None test by identity test
bzr revid: xmo@openerp.com-20120723135215-7n63uh4ikulsdc6r
2012-07-23 15:52:15 +02:00
Xavier Morel c5db4ca91d [IMP] field.char: make string and size optional
* Increases coherence with other fields (default string is 'unknown')
* Char fields defaut to unbounded, bounds are optional

bzr revid: xmo@openerp.com-20120723134931-b5moeenk0db5m2ss
2012-07-23 15:49:31 +02:00
tfr@openerp.com cd3879f107 [FIX] fields.many2many : Always respect destination table order
bzr revid: tfr@openerp.com-20120619151651-fokfu5gkfk3qfhxs
2012-06-19 17:16:51 +02:00
Olivier Dony 7af2e71817 [FIX] fields: remove leftover print statement from r.4160
bzr revid: odo@openerp.com-20120521073851-0e9k8ujhexysg95v
2012-05-21 09:38:51 +02:00