Commit Graph

354 Commits

Author SHA1 Message Date
Stephane Wirtel f55028de4d [MERGE] server: remove unused imports (Thanks to Florent Xicluna)
bzr revid: stw@openerp.com-20120910144609-ad3gupkf3oseb8yy
2012-09-10 16:46:09 +02:00
Fabien Pinckaers 2c63d43c36 fix
bzr revid: fp@tinyerp.com-20120906162528-553xac78vjg9h850
2012-09-06 18:25:28 +02:00
Fabien Pinckaers a43f4e1419 [IMP] folded columns in read_group
bzr revid: fp@tinyerp.com-20120906161719-k4r56bgbso6rprtu
2012-09-06 18:17:19 +02:00
Olivier Dony 8e96d71bf3 [MERGE] sync with trunk
bzr revid: odo@openerp.com-20120905072646-m4269m97ej1oicoq
bzr revid: odo@openerp.com-20120905220158-ulg8jy5alny97ff3
2012-09-06 00:01:58 +02:00
Thibault Delavallée 95837af09c [IMP] ir.needaction: made the model Abstract. Fixed a bug when inheriting from AbstractModels: _auto (to create a database for the model) was not correctly set.
bzr revid: tde@openerp.com-20120904103242-o6ky20u9gvhu0t3u
2012-09-04 12:32:42 +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
Raphael Collet 7c1e4b18b0 [MERGE] from trunk
bzr revid: rco@openerp.com-20120831144818-2jl7ww2pwmp4jk4v
2012-08-31 16:48:18 +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 e46c8e43ff [IMP] Removing a bad practice:
- what happens if you overwrite check_read and modules calls check_access_rights ?
  - 5 methods to learn to understand the API insead of one

bzr revid: fp@tinyerp.com-20120822103725-vdubhkzlake2jyvo
2012-08-22 12:37:25 +02:00
Fabien Pinckaers 03f4b992ad [IMP] need action & mails
bzr revid: fp@openerp.com-20120819145928-5bw5lo6dn4ni4gl7
2012-08-19 16:59:28 +02:00
Jigar Amin - OpenERP 9aca3bac8b [REF/IMP] refectorec the varibale names and added the gantt view, added create ndoe button diable condition
bzr revid: jam@tinyerp.com-20120816125706-h92owusp47t6chl1
2012-08-16 18:27:06 +05:30
Jigar Amin - OpenERP 9698fadbb3 [MERGE] lp:openobject-server
bzr revid: jam@tinyerp.com-20120816041259-kcqcy66o2o57m3r4
2012-08-16 09:42:59 +05:30
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 a9ea1b59e3 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120813101801-snnnxk6p8d9634al
2012-08-13 12:18:01 +02:00
Vo Minh Thu 5e0f709410 [IMP] views: allow create/delete/edit attribte on form/tree/kanban views, automatically set the attributes from access rights.
bzr revid: vmt@openerp.com-20120813091047-vqjk3an52dfzbhqe
2012-08-13 11:10:47 +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