Commit Graph

337 Commits

Author SHA1 Message Date
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 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
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 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
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
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
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 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
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
Fabien Pinckaers 56288e88dc [IMP] removing select=? and adding version=7
bzr revid: fp@tinyerp.com-20120609124045-sbopsbiiffcnjzfv
2012-06-09 14:40:45 +02:00
Olivier Dony 484cf746a5 [FIX] orm: remove unused `module` parameter when creating constraints
This argument was not always present in the context
(e.g when _auto_init is invoked for newly created
custom fields via ir.model.field.create()), and was
thus preventing the creation of custom fields.
It was currently unused, and may be reintroduced
soon after the cleanup of model metadata storage.

bzr revid: odo@openerp.com-20120606141908-bdqxsarfb61yfw8m
2012-06-06 16:19:08 +02:00
Vo Minh Thu 9f46071958 [IMP] uninstall: added some docstrings.
bzr revid: vmt@openerp.com-20120601154544-e9a9cox7fcyd411m
2012-06-01 17:45:44 +02:00
Vo Minh Thu eadd5e0a0a [IMP] uninstall: use a dedicated table for many2many relationships instead of overlaoding ir.model.data.
bzr revid: vmt@openerp.com-20120601153449-uj2sl7qjzz3s7xnj
2012-06-01 17:34:49 +02:00
Vo Minh Thu d790650bfb [IMP] uninstall: use dedicated table instead of overloading ir.model.data.
bzr revid: vmt@openerp.com-20120601131414-880vmpctmjfxl84f
2012-06-01 15:14:14 +02:00
Vo Minh Thu 5df4aa8cca [IMP] uninstall: started test module, added new ir_model_constraint table.
bzr revid: vmt@openerp.com-20120531160140-tutjw76tp0u5hipo
2012-05-31 18:01:40 +02:00
Olivier Dony dbe7b45276 [IMP] orm: support model-level @groups attribute for access restriction
This is a partial implementation with no support for
restricting read/write access via RPC. This first
part only covers the removal of the restricted fields
from the client-side view, i.e. in the results of
fields_view_get() and fields_get().

The second part will come later and will cover the
real low-level access control.

bzr revid: odo@openerp.com-20120518143625-ps9db62vzrc2pylh
2012-05-18 16:36:25 +02:00
Olivier Dony bec50b5df9 [IMP] orm: all workflow trigger calls in common method for increased flexibility
bzr revid: odo@openerp.com-20120504151327-iib0qtvy3d79xgig
2012-05-04 17:13:27 +02:00
Thibault Delavallée c1a4f1f8db [IMP] Updated code (see odo/vmt review). Also removed record_ids storage in menus, to avoid passing too much data to the client.
bzr revid: tde@openerp.com-20120418090735-e5ewk3wcf7bp0bvu
2012-04-18 11:07:35 +02:00
Antony Lesuisse ee747dc954 embbded kanban view
bzr revid: al@openerp.com-20120410134813-c0potdev7a1i63tf
2012-04-10 15:48:13 +02:00
Thibault Delavallée dc698712ff [FIX] Fixed last fix.
bzr revid: tde@openerp.com-20120405133614-6ol9zrqc1t4g3air
2012-04-05 15:36:14 +02:00
Thibault Delavallée d3f9e33222 [FIX] orm: needaction: Added missing local dict with some values in domain evaluation
bzr revid: tde@openerp.com-20120405110815-g9u7yr7gs5o8s28k
2012-04-05 13:08:15 +02:00
Thibault Delavallée 6fdeb5ec98 [MERGE] Merged with main server, holding the need_action mechanism
bzr revid: tde@openerp.com-20120403171512-pb7l4g6pnqryxudm
2012-04-03 19:15:12 +02:00