Commit Graph

68527 Commits

Author SHA1 Message Date
Xavier Morel 8e9fed0574 [IMP] use @draggable instead of hooking on dragstart to disable image and fake-link dragging
Improves upon xmo@openerp.com-20130218104529-i0i8700v2mwxje4b

bzr revid: xmo@openerp.com-20130305100400-8cqkcnd527yn1hbj
2013-03-05 11:04:00 +01:00
Cedric Snauwaert 2e52316b89 [FIX]product: rename product_variant group since it is not used in v7.0 but still in trunk and users don't understand why nothing happen when ticking the option
bzr revid: csn@openerp.com-20130305100120-h59kuj2twmzf6aos
2013-03-05 11:01:20 +01:00
Xavier Morel 25baf23e23 [FIX] stacking of various "drop-down" elements
The search view's completion list should be in front of the search
view's drawer, which itself should (probably) be on top of the graph
view's "action" dropdown.

The graph view's dropdown itself needs a z-index > 0 to be in front of
the graph itself, otherwise it is inactive and unusable: it's visible
through the graph but not activable.

bzr revid: xmo@openerp.com-20130305093619-s1e5fbl80r7qnk5l
2013-03-05 10:36:19 +01:00
Xavier Morel b438ce5249 [FIX] access rights handling on m2m widgets
m2m lists inherit (from listview/view) the handling of access rights
attributes (e.g. @create, @delete) in which the access rights to the
related model are those checked for the view. This is generally true,
but *not* for m2ms: even if a user has no creation rights to the
related model, he can still create a *relation* between the current
and related models.

The m2m access rights are really governed by the *current* (source)
model, in which case the user won't get to see an "editable" view of
the m2m in the first place.

So just override is_action_enabled to disable it in m2ms.

bzr revid: xmo@openerp.com-20130305091956-zn6qtuo4tl0vh3bs
2013-03-05 10:19:56 +01:00
Xavier Morel f12b4b2b9e [IMP] jsdoc annotations
bzr revid: xmo@openerp.com-20130305091951-z2p0wi7w7p6b93y0
2013-03-05 10:19:51 +01:00
Chris Biersbach 61eb94fb58 [MERGE] OPW 585261: translations: corrects extraction of translation for placeholders
bzr revid: cbi@openerp.com-20130305091225-kkpeb6i8yohce5if
2013-03-05 10:12:25 +01:00
Launchpad Translations on behalf of openerp 420f82ec0e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130305053802-13krr4lhrwrebwak
bzr revid: launchpad_translations_on_behalf_of_openerp-20130305053905-y30zk4dbbcc3qj4b
2013-03-05 05:39:05 +00:00
Xavier ALT b07c1a8461 [FIX] statusbar widget: fix no value display for 'selection' field
* really call initial get_selection() after binding 'change:selection'
 overwise no value are assigned to internal selection list - resulting
 to an empty statusbar when field type is 'selection'

bzr revid: xal@openerp.com-20130304230253-0e959r9sintwsd98
2013-03-05 00:02:53 +01:00
Olivier Dony 8453234ead [FIX] all: change confusing labels on Cancel buttons in form views
bzr revid: odo@openerp.com-20130304184431-1p8byycyl0nv26qx
2013-03-04 19:44:31 +01:00
Quentin (OpenERP) 8d47ec5256 [MERGE] base, res.users: added onchange_state() on res.users. Was crashing because the _inherits is not a real python inheritance
bzr revid: qdp-launchpad@openerp.com-20130304184144-iae1pdrrcfy6pveo
2013-03-04 19:41:44 +01:00
Olivier Dony 84593b0ccf [FIX] base_report_design: fix mixed tabs/spaces preventing compilation under recent libreoffice versions
Plugin binary was updated in previous commit already with these fixes,
so not updated again

bzr revid: odo@openerp.com-20130304173132-op4hcnr1l104mzfg
2013-03-04 18:31:32 +01:00
Olivier Dony b185da93a3 [FIX] base_report_designer: fix upload code in plugin to avoid broken reports
It is the call to upload_report() that triggers the registration
of the new reports in the system, as report services.
Unfortunately the `header` property of the report is cached in
the report service and taken from its value at
registration time. So that value *must* be written before
calling upload_report().

Also force the `Corporate Header` to be checked by default
as this is what users want in most cases, and forgetting
it at report creation makes it very hard to set afterwards,
as it is cached in the service.

Updated plugin binary as well.

bzr revid: odo@openerp.com-20130304173125-zky8rtdye64bep07
2013-03-04 18:31:25 +01:00
Xavier Morel 018416630d [FIX] strip server action code before passing it to eval
Python 2.7's compile handles trailing whitespaces correctly, Python
2.6 does not and blows up.

bzr revid: xmo@openerp.com-20130304164423-83vm9teu7b3c52y3
2013-03-04 17:44:23 +01:00
Xavier Morel b921444d6f [FIX] implement forgotten @invisible handling on search view fields
bzr revid: xmo@openerp.com-20130304152047-8xaczg9qdx6ug2p1
2013-03-04 16:20:47 +01:00
Thibault Delavallée f701461253 [MERGE] Chatter: added a small explanation text when logging a note. Also removed custom placeholders in various views, because they do not make much sense anymore, default message should be sufficient.
bzr revid: tde@openerp.com-20130304135935-hjafhalyp94mona6
2013-03-04 14:59:35 +01:00
Thibault Delavallée fc0dd0709f [IMP] Chatter: log message better in black.
bzr revid: tde@openerp.com-20130304135701-4qss8jrmjk9qs4os
2013-03-04 14:57:01 +01:00
Stephane Wirtel f0116f3696 [FIX] account_followup: Remove the notified_partner_ids and set the
right value for the partner_ids parameter for the message_post
function

bzr revid: stw@openerp.com-20130304131934-tkly4aesoirvaas6
2013-03-04 14:19:34 +01:00
Olivier Dony bdbf554fae [FIX] stock: change confusing labels on Cancel buttons
bzr revid: odo@openerp.com-20130304130732-82xx3rlr87152b0g
2013-03-04 14:07:32 +01:00
Thibault Delavallée a7a7868a3a [IMP] various: removed custom placeholders for chatter, because default message should be sufficient in most cases.
bzr revid: tde@openerp.com-20130304125534-u3zoe730jd1ry3ng
2013-03-04 13:55:34 +01:00
Thibault Delavallée 567b41c51e [IMP] Cahtter: imp log message.
bzr revid: tde@openerp.com-20130304125443-9ua1r01r25so0qyw
2013-03-04 13:54:43 +01:00
Cedric Snauwaert 009ea40995 [FIX]res_users : add missing on_change function for res_user simplified view
bzr revid: csn@openerp.com-20130304105817-v3y9d9vupzhuiu2u
2013-03-04 11:58:17 +01:00
Xavier Morel d46c61d784 [FIX] don't store user context properties into custom filter @context
This leads to any subsequent view overwriting the current user's lang
or timezone with the one active when the filter was created,
generating dismay and discontent (e.g. part of the user interface
switching from spanish to english or english to german, depending on
the respective settings of the current user and the filter creator —
at time of filter creation).

bzr revid: xmo@openerp.com-20130304101414-mm6ai1dkltd7ard5
2013-03-04 11:14:14 +01:00
Fabien Pinckaers 0e370076f7 [IMP] contracts improved email template
bzr revid: fp@tinyerp.com-20130304085754-0sfvpgh1il0y3pqc
2013-03-04 09:57:54 +01:00
Thibault Delavallée 178e33da07 [IMP] Chatter: add a small explanation text when logging a note.
bzr revid: tde@openerp.com-20130304080559-py7ghom3bt3xr4io
2013-03-04 09:05:59 +01:00
Launchpad Translations on behalf of openerp 03ad9f7290 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130302052257-0w9v71dump44rtov
bzr revid: launchpad_translations_on_behalf_of_openerp-20130303052333-9kn24ocknaagn33h
bzr revid: launchpad_translations_on_behalf_of_openerp-20130304055956-54bietn1iazrisga
2013-03-04 05:59:56 +00:00
Launchpad Translations on behalf of openerp 55e79b4d36 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130302052300-qobkezoqvnyoi1fl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130304055909-ixg5id5sibsci8s9
2013-03-04 05:59:09 +00:00
Olivier Dony e373ac5aeb [MERGE] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling as possible:
- in web, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301182510-1fqo9o8di0jw95b5
2013-03-01 19:25:10 +01:00
Olivier Dony a451cacb91 [MERGE] http.WebRequest: clear db/uid tracking on worker thread to avoid incorrect values during logging
Could happen when a worker thread is reused for another
database but does not go through all the dispatching levels,
e.g. for static resources served by werkzeug itself.

bzr revid: odo@openerp.com-20130301171616-joit5dvjx51ums1y
2013-03-01 18:16:16 +01:00
Olivier Dony 50d1f8675c [FIX] base_report_designer: missing registry signaling, otherwise the report was not available in other workers
bzr revid: odo@openerp.com-20130301152617-c8dem0ozgsnv8esc
2013-03-01 16:26:17 +01:00
Olivier Dony 261d1c434d [MERGE] registry: another pass of cleanup for registry signaling
Some important points to consider:
 - signaling should be done after any schema alteration (including module [un]installation),
   service registration (e.g. reports)
 - the changes need to be committed to the database *before* signaling, otherwise an
   obvious race condition occurs during reload by other workers
 - any call to restart_pool() must be considered a possible candidate for
   signaling, and the 2 above conditions must be checked

The number of explicit calls was reduced by forcing the signaling at the end of
Registry.new() in case `update_module` was passed as True. In that situation
we always want to signal the changes - so all the redundant signaling calls
can be centralized. We can also assume that the relevant changes have already
been committed at that point, otherwise the registry update would not
have worked in the first place.
This means that there is no need for explicit signaling anymore everytime
`restart_pool` is called with `update_module=True`.

Some missing cr.commit() and explicit signaling calls were added or
moved to the right place. As a reminder: signaling must be done
*after* committing the changes, and usually *after* reloading the
registry on the current worker.

bzr revid: odo@openerp.com-20130301151325-2ygvwp1cx4zms1as
2013-03-01 16:13:25 +01:00
niv-openerp 9205c3455d [FIX] added jquery.placeholder lib to emulate placeholder attribute in IE9
lp bug: https://launchpad.net/bugs/1092846 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130301145421-78byul5vrp127v1n
2013-03-01 15:54:21 +01:00
niv-openerp b62e58d78c Removed changes in main.py
bzr revid: nicolas.vanhoren@openerp.com-20130301144928-tzaos1dblilwbizh
2013-03-01 15:49:28 +01:00
niv-openerp a52d9a3406 Modified to call the placeholder lib in view_form.js
bzr revid: nicolas.vanhoren@openerp.com-20130301144653-6a1z558tjfkvtcar
2013-03-01 15:46:53 +01:00
niv-openerp 77088d339b merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130301143341-xa55351zb166bl2w
2013-03-01 15:33:41 +01:00
Olivier Dony 9770caedf3 [FIX] registry: another pass of cleanup for registry signaling
Some important points to consider:
 - signaling should be done after any schema alteration (including module [un]installation),
   service registration (e.g. reports)
 - the changes need to be committed to the database *before* signaling, otherwise an
   obvious race condition occurs during reload by other workers
 - any call to restart_pool() must be considered a possible candidate for
   signaling, and the 2 above conditions must be checked

The number of explicit calls was reduced by forcing the signaling at the end of
Registry.new() in case `update_module` was passed as True. In that situation
we always want to signal the changes - so all the redundant signaling calls
can be centralized. We can also assume that the relevant changes have already
been committed at that point, otherwise the registry update would not
have worked in the first place.
This means that there is no need for explicit signaling anymore everytime
`restart_pool` is called with `update_module=True`.

Some missing cr.commit() and explicit signaling calls were added or
moved to the right place. As a reminder: signaling must be done
*after* committing the changes, and usually *after* reloading the
registry on the current worker.

bzr revid: odo@openerp.com-20130301143203-e2csf5pkllwhmwqs
2013-03-01 15:32:03 +01:00
niv-openerp 36d47aebc1 [FIX] small problem with <button confirm="..."/>, didn't confirmed correctly when closing the popup
lp bug: https://launchpad.net/bugs/1095366 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130301140015-67av4zwrdhbh3srh
2013-03-01 15:00:15 +01:00
Olivier Dony db81edc287 [FIX] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling where we can:
- in web client, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301120744-jfitcmze2jldecod
2013-03-01 13:07:44 +01:00
Quentin (OpenERP) de33121644 [FIX] purchase: fixed the domain on analytic account in purhcase order line
bzr revid: qdp-launchpad@openerp.com-20130301114646-4n2pmvmkrplch46g
2013-03-01 12:46:46 +01:00
Quentin (OpenERP) c450d0abe7 [FIX] mail: fixed error when the reference is given as False in teh message dictionary in message_parse() of mail_thread.py
bzr revid: qdp-launchpad@openerp.com-20130301114630-y4ynidvhh9pj29s9
2013-03-01 12:46:30 +01:00
Xavier Morel 7278305f68 [FIX] O2M record reloading after workflow progress
Evict record from BufferedDataSet cache as is done with button calls,
otherwise when caller reloads record (read) after having executed the
workflow action, it'll get the old one back from the BDS's cache.

bzr revid: xmo@openerp.com-20130301103543-jra87w2wm417tgyc
2013-03-01 11:35:43 +01:00
Xavier Morel b0b1357f16 [FIX] correctly pass context to graph's fields_view_get
bzr revid: xmo@openerp.com-20130301102555-1g7p8ugyorle7i0j
2013-03-01 11:25:55 +01:00
Xavier Morel ed98418441 [FIX] docstring
bzr revid: xmo@openerp.com-20130301102223-htb9cteh5rjmex38
2013-03-01 11:22:23 +01:00
Thibault Delavallée ecd14f2181 [MERGE] Chatter and CRM: usability fixes and improvements
Chatter:
- now displays the 'To' of messages, aka notified people,
- now allows to Send a message or to Log a note, that is a message not pushed to anyone; however users that see the document still see the log message,
- fixed suggested recipient behavior: canceling the partner creation popup now correctly avoids creating a partner,
- moved 'Advanced wizard' button on top-right,
- unfollowing or removing someone from followers now displays a warning,
CRM, Recruitment, Issues:
- better management of customers/applicants: Chatter suggests to notify and add as follower the customer, or to create a partner based on the email_from,
CRM, Recruitment, Tasks, Issues:
- changing the user_id (salesman, responsible) still adds the related partner as follower; but now an unread notification is pushed, with the first email or first message if no email,
- updated and added if missing message_summary in kanban views, now displayed only when having unread messages, and the related number, to be more visible,
CRM:
- crm_partner_assign: fixed forward-to-partner wizard,
- crm_partner_assign: geo localization now also sets salesteam along with salesman,
- crm: fixed opportunity email_template,
- crm: removed 'Send mail' button, as the functionality should be covered by Chatter (but the code of the action is left untouched to avoid errors),
Mail:
- merged message_post and message_post_user_api because there was an opportunity to avoid doing similar things in two different methods,
- fixed email_from of incoming email not always stored,
- followers: authors of discussion messages are now added as followers, this is not only limited to incoming emails,
- followers: recipients of emails coming through the mail gateway are not automatically added as followers of the target documents,
- followers: slightly updated _notify, to be able to notify a partner of a specific message; the notification process is therefore accessible outside of the mail_message.create() process

bzr revid: tde@openerp.com-20130301101122-l18mr6hb0j5k4atv
2013-03-01 11:11:22 +01:00
Christophe Simonis d48f07fef1 [FIX] base: allow admin to freeze the value of "web.base.url" config parameter.
This config parameter is automatically updated when the admin log-in.
As this value is mean to be used in emails and links given to users, we sometime don't want
it to be updated inconditionnaly. In some cases, the admin may use alternative, private or
even local uri to connect to the server, which may not be suitable for users

bzr revid: chs@openerp.com-20130301095551-fzrlwblnawxqj9di
2013-03-01 10:55:51 +01:00
Thibault Delavallée eb799b5e49 [IMP] crm_partner_assign: now also assigns salesteam.
bzr revid: tde@openerp.com-20130301093449-qpko06oqg7ghv0hh
2013-03-01 10:34:49 +01:00
Thibault Delavallée fb0e18cc88 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130301092215-o2fbmlwc9e3mjc0u
2013-03-01 10:22:15 +01:00
Launchpad Translations on behalf of openerp ece4451176 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130301053921-r8m4764fosovd9h6
bzr revid: launchpad_translations_on_behalf_of_openerp-20130301054021-crdgcw5mb7m77u0t
2013-03-01 05:40:21 +00:00
Olivier Dony ef10c2e3c8 [FIX] http.WebRequest: clear db/uid tracking on worker thread to avoid incorrect values during logging
Could happen when a worker thread is reused for another
database but does not go through all the dispatching levels,
e.g. for static resources served by werkzeug itself.

bzr revid: odo@openerp.com-20130228173530-bs5pun9o09iobosi
2013-02-28 18:35:30 +01:00
Thibault Delavallée f70cc7c46b [IMP] Chatter: reason of adding someone added in tooltip.
bzr revid: tde@openerp.com-20130228172320-d0m7ibobhyfvtqht
2013-02-28 18:23:20 +01:00
Thibault Delavallée 6de2650299 [IMP] Suggested recipients: check whether an email is linked to a partner.
bzr revid: tde@openerp.com-20130228170546-t04n73pvuwtp20jh
2013-02-28 18:05:46 +01:00