Commit Graph

325 Commits

Author SHA1 Message Date
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 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
Thibault Delavallée 90e1433157 [IMP] Removed unused import; added forgottent context to search.
bzr revid: tde@openerp.com-20120403160725-lprixelmtx5cq87l
2012-04-03 18:07:25 +02:00
Thibault Delavallée aa0205c849 [REF] Cleaned model and code: removed classmethods, moved some code to needaction_users, cleaned models.
bzr revid: tde@openerp.com-20120403145426-gjhdwhxb44bme8mi
2012-04-03 16:54:26 +02:00
Thibault Delavallée e12dff66de [MERGE] Merged with fix from need_action branch
bzr revid: tde@openerp.com-20120403074906-1m4yjhz60i9f5tsk
bzr revid: tde@openerp.com-20120403075529-nyp3tq6xafig088w
2012-04-03 09:55:29 +02:00
Thibault Delavallée 157506ef69 [FIX] id instead of ids in domain
bzr revid: tde@openerp.com-20120403075434-585pd5j93jeurelr
2012-04-03 09:54:34 +02:00
Thibault Delavallée 5959157cc5 [REM] Removed res.log feature in ORM. However, the res.log table stays, because it is still used notably in publisher_warranty, that must be checked to see how it should be updated with OpenChatter.
bzr revid: tde@openerp.com-20120402114746-unxkhxutivx2hp7f
2012-04-02 13:47:46 +02:00
Thibault Delavallée 4ba7d34a4a [MERGE] Merged with main server
bzr revid: tde@openerp.com-20120402111047-p3kxej7p90qw0dxa
2012-04-02 13:10:47 +02:00
Thibault Delavallée ecb5b81933 [IMP] Small code cleaning
bzr revid: tde@openerp.com-20120402084526-il0wh3urnemb019g
2012-04-02 10:45:26 +02:00
Thibault Delavallée c4333fe170 [FIX] Added missing item in return
bzr revid: tde@openerp.com-20120402083605-cb5w8sxtxcpexwry
2012-04-02 10:36:05 +02:00
Thibault Delavallée e734648206 [ADD] Added 'needaction_record_ids' field to menu: ids of record requesting the user to perform an action.
bzr revid: tde@openerp.com-20120402083517-1kzxxylr6niczhgw
2012-04-02 10:35:17 +02:00
Thibault Delavallée 8c2b07bf76 [REF] Cleaned ir.needaction code and documentation.
bzr revid: tde@openerp.com-20120402081826-016k0ecbjz3fqnps
2012-04-02 10:18:26 +02:00
Thibault Delavallée 5fd95c5769 [MERGE] Merged with main server
bzr revid: tde@openerp.com-20120402071259-pot0kr7yrkdcd2wj
2012-04-02 09:12:59 +02:00
Olivier Dony 34e240f60d [MERGE] Latest trunk
bzr revid: odo@openerp.com-20120331010335-mya7wowc10dhipxu
2012-03-31 03:03:35 +02:00