Commit Graph

294 Commits

Author SHA1 Message Date
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
Olivier Dony 74ed36e416 [IMP] orm,ir.model: improve registration and deletion of schema ext_ids
Also handle the very common cases of inheriting classes
that must *not* trigger deletion of the m2m tables and
constraints of their parent classes!

bzr revid: odo@openerp.com-20120331004215-413lcxaxvg0u6oxw
2012-03-31 02:42:15 +02:00
Thibault Delavallée 94075df78e [DOC] Added comments.
bzr revid: tde@openerp.com-20120330102419-n2co6dwf00q0muue
2012-03-30 12:24:19 +02:00
Thibault Delavallée 3ee9f70343 [IMP] Renamed added fields. Added comments and improved help.
bzr revid: tde@openerp.com-20120330101929-18opxctcz1eeyl4u
2012-03-30 12:19:29 +02:00
Quentin (OpenERP) b1a29c5a6a [REF] base: small refactoring of things related to the merge of res.partner and res.partner.address
bzr revid: qdp-launchpad@openerp.com-20120329114331-hmlld7fxlw6sh1ks
2012-03-29 13:43:31 +02:00
Quentin (OpenERP) 808e441390 [MERGE] merged the main server code
bzr revid: qdp-launchpad@openerp.com-20120329111943-wt81xc8if89rpy4w
2012-03-29 13:19:43 +02:00
Thibault Delavallée 8196c9e1b1 [REF] Refactored needaction mechanism. Added functional fields in ir.ui.menu so the web client only has to manage the values.
bzr revid: tde@openerp.com-20120328163549-4g3dc5mwdagenrq1
2012-03-28 18:35:49 +02:00
Olivier Dony 63f3c4e988 [MERGE] Latest trunk
bzr revid: odo@openerp.com-20120326182926-5kjps7hjxb17rju8
2012-03-26 20:29:26 +02:00
Vo Minh Thu 05422654b6 [IMP+FIX] fields: removed references to one2one, but also
corrected some typo `.. in (xxx)` instead of `.. in (xxx,)` (Note the trailing comma).
There is still a (non-harmful) reference to one2one in the base_synchro addons.

bzr revid: vmt@openerp.com-20120322164540-9rl8iidj4wrjohru
2012-03-22 17:45:40 +01:00
Vo Minh Thu 46a190aaf8 [IMP] fields: removed any reference to integer_big.
bzr revid: vmt@openerp.com-20120322163850-sxfd9g1x96jstr51
2012-03-22 17:38:50 +01:00
Vo Minh Thu c5ef5e1394 [IMP] fields: removed deprecated fields (time, integer_big, one2one).
bzr revid: vmt@openerp.com-20120322161825-dlbnj9p2xe0mhhxx
2012-03-22 17:18:25 +01:00
Atul Patel (OpenERP) 258722cc1c [MERGE]: Merge with lp:openobject-server
bzr revid: atp@tinyerp.com-20120316042909-gb2e5cmrilyyhsef
bzr revid: atp@tinyerp.com-20120320050251-bgk9xhsfmb1fws1p
2012-03-20 10:32:51 +05:30
Quentin (OpenERP) 3f9ce80a7d [MERGE] merge with main server trunk
bzr revid: qdp-launchpad@openerp.com-20120316125320-6ua2vcsajlsxsr1p
2012-03-16 13:53:20 +01:00
Atul Patel (OpenERP) 5bf4aa302a [ADD]: ADd condition for insert constraint if not exists.
bzr revid: atp@tinyerp.com-20120312095355-q3r8bz8i7n50bf47
2012-03-12 15:23:55 +05:30
Atul Patel (OpenERP) 180a23c7cc [FIX]: uninstall module.
Remove foreign key references.
Remove sql constraint .
Remove workflow activity and transition based on deleted cascade.
Drop ir model fields columns and drop table.

bzr revid: atp@tinyerp.com-20120309124753-c4yzeoij5p2fmhgg
2012-03-09 18:17:53 +05:30
olt@tinyerp.com 6aa9f06dae [FIX] 'create_instance' method: the check for parent_model existence need to be done before accessing that object attributes or methods
bzr revid: olt@tinyerp.com-20120309081929-g4b8d34e93at49wf
2012-03-09 09:19:29 +01:00
Bhumika (OpenERP) a3a2c698ab [Fix]base/res: res.parnter.address inherit compatiblity and open the address view
bzr revid: sbh@tinyerp.com-20120309065422-2wz5ch29x9qs8lf3
2012-03-09 12:24:22 +05:30
Atul Patel (OpenERP) 3465869df7 [FIX]: Remove workflow activity and drop constraint during uninstalling module.
bzr revid: atp@tinyerp.com-20120229135343-g0v04jb5nc723w9q
2012-02-29 19:23:43 +05:30
Olivier Dony 769ea34281 [FIX] orm: model auto-init - better algorithm for detecting stale constraints during update
bzr revid: odo@openerp.com-20120223175851-bihxp0l0ax1xhf5g
2012-02-23 18:58:51 +01:00
Olivier Dony 819334f0aa [FIX] orm: inherited `active` fields should be used for the implicit filtering
This is for example used by hr.employee which
inherits from resource.resource, with the
`active` field located on the resource model.
Simplified some code too.

bzr revid: odo@openerp.com-20120223141635-p117b5wvvreuj40c
2012-02-23 15:16:35 +01:00
olt@tinyerp.com 3be394de8a [FIX] pep8: tab -> space
bzr revid: olt@tinyerp.com-20120223094355-ejsm256vn58bn4i2
2012-02-23 10:43:55 +01:00
Olivier Dony 3f6524a6e2 [FIX] Correct remaining SQL now() calls, must use UTC
This is essential to have the proper behavior for
timestamps: on the database side we exclusively 
store UTC data (no DST issues, etc.) as naive
timestamps (to prevent Postgres from messing with them).
Inside OpenERP server/addons we work again with
pure UTC data (much simpler), and only render
them according to the user's timezone when they
are displayed in the user interface or rendered
in a PDF report.

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

bzr revid: odo@openerp.com-20120220105943-v3m0i50phrurt8x6
2012-02-20 11:59:43 +01:00
Vo Minh Thu 64ba0da663 [FIX] fields: duplicate float fields per registry (because they are stateful).
lp bug: https://launchpad.net/bugs/929483 fixed

bzr revid: vmt@openerp.com-20120215101714-zjsdcizzb1m2x6k5
2012-02-15 11:17:14 +01:00
Vo Minh Thu 1ab6f8883c [IMP] logging: _logger.warn() replaced by _logger.warning().
bzr revid: vmt@openerp.com-20120202092634-pylu3098p5c0mays
2012-02-02 10:26:34 +01:00
Antony Lesuisse 91ef8c1c51 [FIX] review according to xmo :)
bzr revid: al@openerp.com-20120201235604-tr5iq676pzk8bi1m
2012-02-02 00:56:04 +01:00
Antony Lesuisse 1a62602c86 [MERGE] trunk
bzr revid: al@openerp.com-20120131211744-whzzo0dh6w1kptng
2012-01-31 22:17:44 +01:00
Vo Minh Thu 283304f9a2 [IMP] warnings: turn warnings.warn into logging.warning:
Warnings are handled with the other logs (and not always sent to stderr),
they also appear under a module __name__ channel instead of py.warn.
The disadvantage is that there is no longer specific warnings,
such as pending deprecation warning or deprecation warning.

bzr revid: vmt@openerp.com-20120125132407-u33idc0qh7ecs1i5
2012-01-25 14:24:07 +01:00
Xavier Morel d181a5e7ac [IMP] move browse_record to logging, __init__ docstring to sphinx info fields
bzr revid: xmo@openerp.com-20120125113429-6stglci05rxpfo5j
2012-01-25 12:34:29 +01:00
Vo Minh Thu f057f2afa5 [IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger().
bzr revid: vmt@openerp.com-20120124173017-c66z3kq11wmbrrke
2012-01-24 18:30:17 +01:00
Vo Minh Thu f22f2fc770 [IMP] openerp.{modules,osv}: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124124252-91g3ysf33zsq4nhd
2012-01-24 13:42:52 +01:00
Vo Minh Thu 0ed4377cf8 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120112155027-u3bagec0g9fqr0yi
bzr revid: vmt@openerp.com-20120116110434-ckhp01ze83cwm32y
2012-01-16 12:04:34 +01:00
Vo Minh Thu daa41b61c1 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120110154333-kdwsff0faftcwvku
2012-01-10 16:43:33 +01:00