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
Thibault Delavallée
e4185c910f
[FIX] orm deprecated: added a list cast because we may receive tuples (as seen on runbot).
...
bzr revid: tde@openerp.com-20120814094142-b79hn5xgduhc7w15
2012-08-14 11:41:42 +02:00
Thibault Delavallée
7c0a0a0158
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120810073318-gcgnj16e02qvg0y3
bzr revid: tde@openerp.com-20120814090328-seyvug8zdagbdm0o
2012-08-14 11:03:28 +02:00
Thibault Delavallée
d3ed214101
[MERGE] Merged with last server/trunk to avoid issues with default data.
...
bzr revid: tde@openerp.com-20120810104044-97advtdk1yvr3262
bzr revid: tde@openerp.com-20120813115658-bcvr2kxx4qjyhndg
bzr revid: tde@openerp.com-20120813144204-ub5wp428tdnemalx
2012-08-13 16:42:04 +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
Vo Minh Thu
d1d6203f4f
[FIX]: orm: reverted a change in a previous commit (where a try/except was removed).
...
bzr revid: vmt@openerp.com-20120810120936-13lewpbjn7euveg0
2012-08-10 14:09:36 +02:00
Thibault Delavallée
8fef0b9a57
[IMP] Removed unnecessary conditions.
...
bzr revid: tde@openerp.com-20120810073242-5nc7h84x9r17kabl
2012-08-10 09:32:42 +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
87625fd742
[IMP] deprecated feature: added protection against read/write on non-existing columns. The ORM already throws warnings, no need to crash in addition :) .
...
bzr revid: tde@openerp.com-20120809120926-ngl31imcggzz9wzt
2012-08-09 14:09:26 +02:00
Thibault Delavallée
90c695d141
[FIX] f -> field
...
bzr revid: tde@openerp.com-20120809084148-a3wf9cihllhhmo82
2012-08-09 10:41:48 +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
Xavier Morel
b4d532f7d6
[MERGE} from trunk
...
bzr revid: xmo@openerp.com-20120808113035-ym4zuqisnofv129s
2012-08-08 13:30:35 +02:00
Xavier Morel
346397530d
[FIX] weird dict.update calls
...
bzr revid: xmo@openerp.com-20120806132731-ck4usrs99qlh1pq9
2012-08-06 15:27:31 +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
eb0a178196
[MERGE] name_get: support more field types and improve previous name_get changes
...
Introduces an improved name_get implementation,
supporting a few more fields type used as _rec_name
(such as many2one). The actual rendering of the
"display name" is delegated to the column class,
and computed based on the value returned by read()
for the column.
Funky @classmethod stuff was necessary to allow
column types to delegate to other types, such as
function types which can delegate to the real
type they emulate.
The display_name term was used because it is
being discussed for the new API to add a virtual
display_name column to all models, allowing
clients to read the name_get value along with
regular columns. It looks appropriate too.
Also fixes a few shortcomings of the latest
patches to name_get, such as supporting inherited
columns and avoiding a useless read() call with
only the id column.
bzr revid: odo@openerp.com-20120803142952-8jefy3bsgftucxuk
2012-08-03 16:29:52 +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
Vo Minh Thu
ddaadd1398
[FIX] orm: disallow LOG_ACCESS fields in the create() method.
...
Removes the LOG_ACCESS fields from the values given to create(),
otherwise we would end up passing two times the same field to
postgresql.
bzr revid: vmt@openerp.com-20120803094800-81cgwyeg5cmud9mj
2012-08-03 11:48:00 +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
ef26faf0a5
[IMP] add more information when searching on a non-searchable field using debug logging
...
bzr revid: xmo@openerp.com-20120802152553-r8xpw0g6bep08jod
2012-08-02 17:25:53 +02:00
Xavier Morel
8060f19108
[IMP] error-level log when non-stored function field without fnct_search is searched
...
holding off on blowing up an error just yet, but it might be a good idea in the end
bzr revid: xmo@openerp.com-20120802150837-3qvgg3e5pmfeqmk0
2012-08-02 17:08:37 +02:00
Vo Minh Thu
6aef95b5c2
[MEOW] lolcat crazy ninja fix in the branch, take two!
...
bzr revid: vmt@openerp.com-20120801080155-8qhg3aqkay2rrmbt
2012-08-01 10:01:55 +02:00
Vo Minh Thu
171500f171
[MAOW] lolcat ninja fix in the branch, yaoh!
...
bzr revid: vmt@openerp.com-20120801075024-mpc4seluumaa33ph
2012-08-01 09:50:24 +02:00
Antony Lesuisse
42859212fa
[FIX] typos and vmt review
...
bzr revid: al@openerp.com-20120731152649-4mxph7d0cnlaqtef
2012-07-31 17:26:49 +02:00
Antony Lesuisse
4811011c76
[FIX] typo
...
bzr revid: al@openerp.com-20120731151718-g0fk33ycoapob13j
2012-07-31 17:17:18 +02:00
Antony Lesuisse
8540dcf017
[FIX] assertion message
...
bzr revid: al@openerp.com-20120731122557-9ka14pw09x2fhmos
2012-07-31 14:25:57 +02:00
Antony Lesuisse
d375ee272e
[FIX] rec_name assertion and fallback
...
bzr revid: al@openerp.com-20120731120621-11j7k7965d9sclp2
2012-07-31 14:06:21 +02:00
Antony Lesuisse
09fe39c0b6
[IMP] rec_name assertion and fallback
...
bzr revid: al@openerp.com-20120731110845-nt11isvr96tuc207
2012-07-31 13:08:45 +02:00
Xavier Morel
fc36345ca0
[ADD] test cases for export of simple fields
...
bzr revid: xmo@openerp.com-20120723150306-6zgtr9ho0d3ud78u
2012-07-23 17:03:06 +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
3b5890d79b
[REM] redundant code: a field of type one2many will always have _type one2many
...
bzr revid: xmo@openerp.com-20120723135113-6x3s5lmljk8cdpf0
2012-07-23 15:51:13 +02:00
Xavier Morel
8bdd730090
[REM] orm: pointless character replacement of quotes by spaces in field strings
...
bzr revid: xmo@openerp.com-20120723135022-9lh5yyk0au5xag3l
2012-07-23 15:50:22 +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
Fabien Pinckaers
a7071dcf1a
[FIX] whitespace lost in translation
...
bzr revid: fp@tinyerp.com-20120702162022-oltxv9owxhs9ubjj
2012-07-02 18:20:22 +02:00
Raphael Collet
8e36512e97
[IMP] orm translations: improve variable names
...
bzr revid: rco@openerp.com-20120702072424-n402jjf4vfi2357p
2012-07-02 09:24:24 +02:00
Xavier Morel
03e56ea7b6
[FIX] using the newly translated string might be a better idea than putting the old one again
...
todo: stop committing at 9AM, still not woken up
bzr revid: xmo@openerp.com-20120702071841-h0th114l87iphsty
2012-07-02 09:18:41 +02:00
Xavier Morel
d5bd3aff48
[FIX] stupid
...
bzr revid: xmo@openerp.com-20120702070945-i2dqvjsi2cwf9w7s
2012-07-02 09:09:45 +02:00
Xavier Morel
dee93136d1
[IMP] massage all translatable attributes in a loop instead of copy/pasting a billion versions
...
bzr revid: xmo@openerp.com-20120702063511-o3nrikklzgubkals
2012-07-02 08:35:11 +02:00
Fabien Pinckaers
ed4c342d9c
[IMP] Translations of static terms in views
...
bzr revid: fp@tinyerp.com-20120628141632-ghixqjf59jodqgx4
2012-06-28 16:16:32 +02:00
Antony Lesuisse
453a1350fe
[MERGE] trunk
...
bzr revid: vmt@openerp.com-20120620122005-2rghps6qjjkozt3n
bzr revid: al@openerp.com-20120627103900-0kgtskgipdazmgy9
2012-06-27 12:39:00 +02:00
Antony Lesuisse
1624d47aeb
[MERGE] placeholder translation
...
bzr revid: al@openerp.com-20120627103106-wclqfoesq9b2subb
2012-06-27 12:31:06 +02:00
Vo Minh Thu
877ec2d7a8
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120619132718-ag1j3itm69u8h419
2012-06-19 15:27:18 +02:00
Olivier Dony
34965058ec
[IMP] access rights: improve error messages for ACLs and record rules
...
bzr revid: odo@openerp.com-20120615153414-w4p4iczhl6lli50u
2012-06-15 17:34:14 +02:00
Vidhin Mehta (OpenERP)
67af184b8c
[IMP]translate placeholders.
...
bzr revid: vme@tinyerp.com-20120612120205-2ehz22nlhxsq3245
2012-06-12 17:32:05 +05:30
Olivier Dony
31b9bee006
[IMP] orm: improved @version spec validation for inherited views
...
bzr revid: odo@openerp.com-20120611173132-3ioptod9jwxttopc
2012-06-11 19:31:32 +02:00
Fabien Pinckaers
b1ab584317
[merge] trunk
...
bzr revid: fp@tinyerp.com-20120610081834-lwt8ffvniuxddn3c
2012-06-10 10:18:34 +02:00