Commit Graph

69750 Commits

Author SHA1 Message Date
Vo Minh Thu fa3a3414f2 [FIX] ir.actions.action: fix the execute wich install/uninstall modules and thus invalidate its own pool.
bzr revid: vmt@openerp.com-20130319142701-1cvo6dh2yvg4z81f
2013-03-19 15:27:01 +01:00
Quentin (OpenERP) 314fb5de44 [REF] stock: code refactoring to follow PEP8 standards
bzr revid: qdp-launchpad@openerp.com-20130319125244-4n08ywb61cu6mg32
2013-03-19 13:52:44 +01:00
Quentin (OpenERP) 31d83649d2 [FIX] stock: if scrapping from a done stock move, use the destination location as the source for the scrapping move + [FIX] stock, mrp: restrict scrapping from virtual locations
bzr revid: qdp-launchpad@openerp.com-20130319125216-pdfo2i9jx5mcea2l
2013-03-19 13:52:16 +01:00
Quentin (OpenERP) 748ebf0ab0 [MERGE] analytic_contract_hr_expense: functional field computation fixed + added some helping info in hr_timesheet_invoice in the reinvoicing wizard
bzr revid: qdp-launchpad@openerp.com-20130319125028-59jnnfc7tiixag4b
2013-03-19 13:50:28 +01:00
Chris Biersbach 3b54759913 [MERGE] project_issue/mail_thread: Opening and closing date on project issues are now correctly set. Also improves the handling of the thread_model context value in mail_thread message_post
bzr revid: cbi@openerp.com-20130319114541-racddure6uy3e2rp
2013-03-19 12:45:41 +01:00
Chris Biersbach 9e6d14a289 [IMP] Removed unnecessary code in project_issue.py, fixed a small error in mail_thread
bzr revid: cbi@openerp.com-20130319103822-ss4y3na3i4hip4e0
2013-03-19 11:38:22 +01:00
niv-openerp 185b405b96 [MERGE] 7.0 branch
bzr revid: nicolas.vanhoren@openerp.com-20130319102859-rj9r9ngqtf5ep3a3
2013-03-19 11:28:59 +01:00
niv-openerp c55de6996f [FIX] small problem with m2o, does not uses context when opening them in read-only mode
bzr revid: nicolas.vanhoren@openerp.com-20130319102719-0gdwvmix4d3x8th5
2013-03-19 11:27:19 +01:00
Thibault Delavallée e86ee64b0a [MERGE] Mass Mailing branch. The purpose of this branch is to improve the mass mailing using the composer wizard, and a better support of email template values. Mass mailing basically posts a message on a document, without notifying the followers. Options are added that allow to send pure email mass mailing, or to notify followers. Specifying a reply to address is now supported. It by-passes the automatic thread fetching by directly looking for aliases instead of rebuilding threads when processing replies. Some templates have also been updated or added to support mass mailing in CRM.
mail_mail
- added recipient_ids field, that holds specific recipients in addition to email_to; this field replace the recipient_ids parameter of mail_mail.send(), allowing to re-send failed emails, or at least store the whole mail information about recipients,
- updated form view to add some missing fields in the view,
mail_message
- added 'reply_to' field, that holds specific reply_to value, before passing it to the created email notifications,
mail_compose_message
- added 'post' boolean field: whether the message will be posted on the document (using active_model_pool.message_post()), or if it should only be an email (using mail_mail.create()),
- added 'notify' boolean field: if the message is posted on the document, tells whether the followers should be notified of the message,
- added 'same_thread' boolean field: if not set, a custom reply_to will be used and the automatic thread routing in message_process will be py-passed,
email_template
- renamed 'email_recipients' field into 'partner_to' (more coherent: email_to is a list of emails, partner_to is a list of partner ids),
- added default template on res.partner, setting partner_to as obj.id,
- moving mass mailing action from mail to email_template, that now uses the previous template,
mail_compose_message in email_template
- added partner_to, email_to and email_cc to be able to use those fields, that exist on the template, in the wizard
crm
- updated basic lead/opportunity template, setting partner_to as obj.partner_id.id, or email_to as obj.email_from
- added mass mailing action for lead/opportunity that uses the previous template

bzr revid: tde@openerp.com-20130319095505-efv0mdzq2fnwnila
2013-03-19 10:55:05 +01:00
Thibault Delavallée 68282c6064 [IMP] mail_compose_message: some fields back to visible.
bzr revid: tde@openerp.com-20130319093844-82c95hmwznaprp6t
2013-03-19 10:38:44 +01:00
Thibault Delavallée 522f144781 [CLEAN] Misc cleaning and code review before merging.
bzr revid: tde@openerp.com-20130319091844-tnpd0w8tlagcbypz
2013-03-19 10:18:44 +01:00
Thibault Delavallée e559949f07 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130319090148-ggdkll48f9343y1l
2013-03-19 10:01:48 +01:00
Launchpad Translations on behalf of openerp 19daf7569d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130319061937-ipohtns00c8dz96s
2013-03-19 06:19:37 +00:00
Launchpad Translations on behalf of openerp 72cfad62ae Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130319055226-z0y9upevo90gjrp7
2013-03-19 05:52:26 +00:00
Launchpad Translations on behalf of openerp 3f28f35405 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130319053351-ewu7qa30awce4qli
2013-03-19 05:33:51 +00:00
niv-openerp a6a8d71a0e [FIX] calls to fields_view_get do not pass the correct context, fails in o2m
lp bug: https://launchpad.net/bugs/1091204 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130318174503-7xp04ccghdbqfvrl
2013-03-18 18:45:03 +01:00
Olivier Dony 662f4066f8 [FIX] db creation: change master password field back to type=password
This is not only dangerous but also
completely inconsistent with the other
db management screens. It also represents
little improvement in terms of usability
for first-time users, since the password
is now mentioned on the comment just above
the field.

bzr revid: odo@openerp.com-20130318155618-z9s2izahnv1j2no6
2013-03-18 16:56:18 +01:00
Thibault Delavallée acb14cdead [FIX] mail: fixed issues with partner_ids now being a list of ids and not a list of commands anymore.
bzr revid: tde@openerp.com-20130318154923-svnh1h6sm06nrbt6
2013-03-18 16:49:23 +01:00
Josse Colpaert fffc371f96 [FIX] Fix wrong amounts in contract form and add grey text message in Create Invoice wizard
bzr revid: jco@openerp.com-20130318153049-myvqzvv1c2zqgna8
2013-03-18 16:30:49 +01:00
Thibault Delavallée bcc7fcb3c6 [FIX] mail: missing 'nice' reply_to is back on track.
bzr revid: tde@openerp.com-20130318150252-twwxoborz8ppeh6a
2013-03-18 16:02:52 +01:00
Quentin (OpenERP) 2bfbe50079 [FIX] account: fixed the filter used in manual reconciliation process
bzr revid: qdp-launchpad@openerp.com-20130318144342-16w1dreej7yzr51n
2013-03-18 15:43:42 +01:00
Olivier Dony ffd258e3f0 [FIX] web_services: incorrect error message in logfile after failed DB dump, courtesy of Brendan Clune (Logic Supply)
lp bug: https://launchpad.net/bugs/1124440 fixed

bzr revid: odo@openerp.com-20130318144156-q7yw9qy83tngdg6x
2013-03-18 15:41:56 +01:00
Olivier Dony 8d6e91219f [FIX] web_services: set PGPASSWORD in environment only when db_password is set in the config
This prevents an error when trying to set an
environment variable to `False`, and is the
second part of the regression introduced in
revision 4424. See previous partial fix
at revision 4893

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

bzr revid: odo@openerp.com-20130318141532-m2xsahh5u5pi5bth
2013-03-18 15:15:32 +01:00
Quentin (OpenERP) 5cdc6aa4a1 [MERGE] removal of editable=top on stock.move tree view
bzr revid: qdp-launchpad@openerp.com-20130318135828-y5v17c731059ab7u
2013-03-18 14:58:28 +01:00
Quentin (OpenERP) 0134905e3f [MERGE] sale: when printing the sale order report, do not print the discount column if user doesn't belong to the group that enables to see it
bzr revid: qdp-launchpad@openerp.com-20130318135654-bi22fjscerrmzgru
2013-03-18 14:56:54 +01:00
Quentin (OpenERP) d7fbdc78d2 [FIX] auth_signup: fixed wrong xml syntax due to poor conflict-resolving
bzr revid: qdp-launchpad@openerp.com-20130318134932-me3dlcu2sugvuscc
2013-03-18 14:49:32 +01:00
Cedric Snauwaert 25a6c8f9c4 [FIX]stock: list view for stock move shouldn't be editable
bzr revid: csn@openerp.com-20130318134343-1z5epusa17enpclt
2013-03-18 14:43:43 +01:00
Thibault Delavallée 6bbc658f9b [FIX] mail: fixed wrong var name in notify; fixed a missing email in tests.
bzr revid: tde@openerp.com-20130318131919-31zdc7309c4zt8xj
2013-03-18 14:19:19 +01:00
Quentin (OpenERP) 333e83fc5b [REF] account_payment: removal of amount_to_pay field on account.move.line and account.invoice, replaced by amount_residual
bzr revid: qdp-launchpad@openerp.com-20130318122748-ac9k5bhka1foadvr
2013-03-18 13:27:48 +01:00
Quentin (OpenERP) 2b64c79c3d [MERGE] forward port of fixes made in v7 addons branch up to revision 8872
bzr revid: qdp-launchpad@openerp.com-20130318122717-qptmntn26bx4wn8r
2013-03-18 13:27:17 +01:00
Thibault Delavallée 7e696dfdcb [MERGE] Sync with trunk and latest mail changes.
bzr revid: tde@openerp.com-20130318122027-l570iyzlljshz4ne
2013-03-18 13:20:27 +01:00
Thibault Delavallée 00bb2273d9 [MERGE] 'Invite & Quick Create User' update. Addons branch; see server branch for more details.
Quick Create:
- [ADD] in context of 'user_id' fields the xml_ids of necessary groups,
Invite:
- [ADD] added send_mail boolean field on invite wizard, allowing to avoid sending emails when inviting someone as a follower on the document,
- [IMP] notification and invite signature: improved signature (now including: sender name, company name as a link to the company website); invite message and subject improved, small code re-organization
Misc:
- [IMP] sheet tags added in various form views in HR

bzr revid: tde@openerp.com-20130318121439-xyl34r9tdut6t19c
2013-03-18 13:14:39 +01:00
Thibault Delavallée 027c419181 [MERGE] 'Invite & Quick Create User' update. The server branch holds in res_users.create() the support of key in context, allowing to put xml_ids of user groups in the context of relational fields linking to res.users. The purpose of this modification is to quick-create users that will have the access rights related to the functional meaning of the field. For example creating an user in the 'Responsible' field of a task should add him in the group related to project management.
Example of use : <field name="user_id" string="Project Manager" context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/> will add Employee (base.group_user) and Project Manager (project.group_project_manager) groups, as well as implied groups.

res_users:
- [add] added support of  key in context of default_get. It contains a list of xml_ids of user groups; those groups, if found, are added to the newly created user,
- [ref] refactored simplified (quick create) view that is now more like a contact card, with login and email required because of the login email that will be send to the user

bzr revid: tde@openerp.com-20130318120905-1w9xpoyppnj62wlj
2013-03-18 13:09:05 +01:00
Thibault Delavallée ea26bc7f0d [CLEAN] addons: removed duplicated base.group_user in context of default_groups_ref.
bzr revid: tde@openerp.com-20130318113948-i2chxw0a9xs356v3
2013-03-18 12:39:48 +01:00
Josse Colpaert 26e769eb88 [FIX] Change SQL query for manual reconciliation partners such that partners appear when needed
bzr revid: jco@openerp.com-20130318113043-fm2gc0yrln630vjf
2013-03-18 12:30:43 +01:00
Quentin (OpenERP) efbfb6514c [MERGE] crash when duplicating a pos_config
bzr revid: qdp-launchpad@openerp.com-20130318112603-3ursnpro19qhb5yh
2013-03-18 12:26:03 +01:00
Olivier Dony 8e3ba8e34e [FIX] service.db: missing imports
lp bug: https://launchpad.net/bugs/1155523 fixed

bzr revid: odo@openerp.com-20130318110257-x9591dl74vu8yf2f
2013-03-18 12:02:57 +01:00
Olivier Dony 125b2a804a [IMP] service.wsgi_server: useless import
bzr revid: odo@openerp.com-20130318110229-h4422zy2kcjys2ik
2013-03-18 12:02:29 +01:00
Cedric Snauwaert 87908c8b58 [FIX]pos: fix error when trying to duplicate point of sale
bzr revid: csn@openerp.com-20130318105304-3g7qlb8lrjr0e5rw
2013-03-18 11:53:04 +01:00
Xavier Morel ac5008abc9 [FIX] pyeval: argspec of relativedelta
bzr revid: xmo@openerp.com-20130318105244-qkgvi69do0219lkk
2013-03-18 11:52:44 +01:00
Thibault Delavallée 7602819aa3 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130315093732-2u1lc5x51276ethu
bzr revid: tde@openerp.com-20130318101836-rve5ane4rheiiq6k
2013-03-18 11:18:36 +01:00
Thibault Delavallée de5a303c4d [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130318101828-6csyuhmutrvm5ld5
2013-03-18 11:18:28 +01:00
Launchpad Translations on behalf of openerp 9485c49f4f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130316063604-hv8xtn4g8e76no72
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317053030-q0f5iyfhv4qtah18
bzr revid: launchpad_translations_on_behalf_of_openerp-20130318052217-ua2ev323qlvhi8l2
2013-03-18 05:22:17 +00:00
Launchpad Translations on behalf of openerp 4ce8d2697d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130316055338-ogfw01ap8fh1hlaj
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317045918-zi1230lgxjbkqw3x
bzr revid: launchpad_translations_on_behalf_of_openerp-20130318044640-ts2tr31y2gl25rev
2013-03-18 04:46:40 +00:00
Launchpad Translations on behalf of openerp dcc9a3aeab Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317052921-m3gthz6l7fx1jwu7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130315064417-68iimts1xgj8bn5z
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317053035-kqb70nwvcg1iqldu
2013-03-17 05:30:35 +00:00
Quentin (OpenERP) 9745c8c6c6 [FIX] account: prevent the residual amount of invoices/credit notes to be negative
bzr revid: qdp-launchpad@openerp.com-20130315130147-1n6g5z7nghmucibo
2013-03-15 14:01:47 +01:00
Thibault Delavallée 660b94845a [IMP] mail_compose_message: mass mailing does not auto_subscribe author anymore.
bzr revid: tde@openerp.com-20130315124009-xgfwr5xuxe1fhrut
2013-03-15 13:40:09 +01:00
Thibault Delavallée 5d59401b91 [MERGE] Sync with trunk, tried to resolve the conflicts without breakign everything.
bzr revid: tde@openerp.com-20130315120759-sf1o1sd80ycuuy7n
2013-03-15 13:07:59 +01:00
Xavier Morel 9494f21ea8 [FIX] __getattr__ implementation on BaseModel
object has no __getattr__, in the usual case super(BaseModel,
self).__getattr__ will blow up with an AttributeError (but the wrong
one).

On the other hand, if a BaseModel descendant class is used in MI
alongside a non-BM descendant (e.g. res_partner inheriting from Model
and format_address) and the non-BM descendant also implements
__getattr__, we want to forward the failed attr search to the other
__getattr__ implementation.

So check if super() has a __getattr__, call it if it does otherwise
AttributeError right there.

bzr revid: xmo@openerp.com-20130315115302-z7jla334gb9a5e43
2013-03-15 12:53:02 +01:00
Thibault Delavallée 4484a3197c [MERGE] Sync with trunk, resolved conflicts due to forward port of 7.0
bzr revid: tde@openerp.com-20130315114338-54scb00rkp7zwr30
2013-03-15 12:43:38 +01:00