Commit Graph

74902 Commits

Author SHA1 Message Date
Christophe Simonis c901141cec [FIX] module loading: do not warn about missing access rules for AbstractModels
bzr revid: chs@openerp.com-20131127180530-aoslbam8almrmpbl
2013-11-27 19:05:30 +01:00
Martin Trigaux f207e8da28 [FIX] pad: add break-word css to avoid going out of the field in case of too long words (eg: urls) (opw 593426)
bzr revid: mat@openerp.com-20131127160300-yx42uee1xqx79ljl
2013-11-27 17:03:00 +01:00
Christophe Simonis f2da2d6811 [FIX] orm: browse() do not prefetch deprecated fields
bzr revid: chs@openerp.com-20131127152537-wkof87ut5cdud6z6
2013-11-27 16:25:37 +01:00
Denis Ledoux f6d7ee39fc [FIX]tools, translate: more tolerant code, if the model does not exist anymore (impossible to syncrhonize translation terms if there are ir_model_fields with non-existing models)
bzr revid: dle@openerp.com-20131127161154-t8xfjiytqq8ja8fh
2013-11-27 17:11:54 +01:00
Denis Ledoux 2a9de8ba6f [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9654 rev-id: dle@openerp.com-20131127151815-gzk9py9wtzmndziw
bzr revid: dle@openerp.com-20131127152136-5p0lkz4vpfn9qxxx
2013-11-27 16:21:36 +01:00
Denis Ledoux a1eb7fffc2 [FIX]note: notes with undefined stages did not appear if the user had defined stages (they appeared if the user had no stages defined)
bzr revid: dle@openerp.com-20131127151815-gzk9py9wtzmndziw
2013-11-27 16:18:15 +01:00
Martin Trigaux 866a7c92b6 [FIX] account: Set the alignment of Total parallel to amount in invoice report
bzr revid: mat@openerp.com-20131127145145-qr48qhkvcw02e9ww
2013-11-27 15:51:45 +01:00
Denis Ledoux 274b9c9503 [FIX]google_drive: using res.users has_group method to know if the user is admin, instead of reading groups_id of the user (and, also, fixed the read call with a string instead of an array for the fields to read)
bzr revid: dle@openerp.com-20131127142049-v9sr5ldc9g4cct98
2013-11-27 15:20:49 +01:00
Denis Ledoux 0ecdb5dec7 [FIX]google_spreadsheet: if formula contained html special chars, the formula was not written on the spreadsheet. The formula is now html escaped before sending the writting request on the spreadsheet.
bzr revid: dle@openerp.com-20131127133500-18vra6sqs6cb3loh
2013-11-27 14:35:00 +01:00
Martin Trigaux 7c1bf0dd29 [FIX] mail: decode filename at email reception (if non-ascii characters) (opw 591729)
bzr revid: mat@openerp.com-20131127124021-bliapaggdjd1xnuz
2013-11-27 13:40:21 +01:00
Christophe Simonis 0d13df5a57 [MERGE] remove warnings
bzr revid: chs@openerp.com-20131127110552-3u2nxwu01gxj9i7m
2013-11-27 12:05:52 +01:00
Christophe Simonis 6b05beecc1 [MERGE] forward port of branch 7.0 up to revid 9651 chs@openerp.com-20131127104459-jb77x7quwcvtifm7
bzr revid: dle@openerp.com-20131126171210-jovr7e7efehuq3s2
bzr revid: chs@openerp.com-20131127110046-4ow36dkuuyzgf1pl
2013-11-27 12:00:46 +01:00
Christophe Simonis 657222ea11 [MERGE] forward port of branch 7.0 up to revid 5151 launchpad_translations_on_behalf_of_openerp-20131127053913-ypnlpggd4wt58pzx
bzr revid: chs@openerp.com-20131127105828-ng8z4by1tszmj9d2
2013-11-27 11:58:28 +01:00
Christophe Simonis 370b4df6f3 [MERGE] {purchase,purchase_requisition}: choose the right warehouse when creating purchase orders from purchase order/requisition
bzr revid: chs@openerp.com-20131127104459-jb77x7quwcvtifm7
2013-11-27 11:44:59 +01:00
Quentin (OpenERP) 7c0c95b1a4 [FIX] sale, purchase: don't copy the customer/supplier reference when copying a SO/PO
bzr revid: qdp-launchpad@openerp.com-20131127084625-dqgoloz4q47zlpti
2013-11-27 09:46:25 +01:00
Christophe Simonis 6347f9f4ea [IMP] orm: copy() does not copy deprecated fields
bzr revid: chs@openerp.com-20131126185210-8kd5stdexa4ozn2m
2013-11-26 19:52:10 +01:00
Christophe Simonis 49fa5cab61 [FIX] purchase_requisition: copy method _get_warehouse from purchase module to avoid crash if purchase_requisition is updated but not purchase
bzr revid: chs@openerp.com-20131126180726-ng0gue9pedmuykj9
2013-11-26 19:07:26 +01:00
Thibault Delavallée ae7fcfb564 [IMP] [FIX] mail: mail_thread :
- avoid having to browse the record in message_subscribe: refactored message_subscribe
to work on ids without browsing, try to lessen the number of queries to do
- update _set_followers, method of the function field message_follower_ids, to use
message_subscribe and message_unsibscribe
- in create: add author as follower in creation values, not after create, allowing
create access rules based on followers
- updated message_unsubscribe to be the lower method, not calling _set_followers anymore

bzr revid: tde@openerp.com-20131126171752-1irizm7mhv2y1wrn
2013-11-26 18:17:52 +01:00
Quentin (OpenERP) 34832b4694 [FIX] purchase: at the validation of the PO, force the company in the context as the company on the PO in order to read property fields correctly. This patch is necessary to allow a user to confirm a PO belonging to another company (if he has the rights to do so).
bzr revid: qdp-launchpad@openerp.com-20131126170505-ttzuiaujpl1k24rg
2013-11-26 18:05:05 +01:00
Launchpad Translations on behalf of openerp 6fd5575930 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127053957-ekc1bfm5ohug21aa
2013-11-27 05:39:57 +00:00
Denis Ledoux d003d8f49a [FIX]hr_timesheet_sheet: add right-padding to timesheet weekly input in order to avoid the value to be partially cut (in ie 9/10, for instance)
bzr revid: dle@openerp.com-20131126170019-bydxxyk7uqzpsb41
2013-11-26 18:00:19 +01:00
Denis Ledoux bbd8f7bb98 [FIX]remove deprecated (& useless) code, overwritting the base.action_res_users (The Configuration > Users window action) context, and prevented the 'Regular Users' filter from share module to be loaded by default
bzr revid: dle@openerp.com-20131126162756-lljq08wrmymwxlzs
2013-11-26 17:27:56 +01:00
Christophe Simonis 1e2cf5c245 [FIX] auth_signup: do not send set_password email at user signup
bzr revid: chs@openerp.com-20131126161658-9yvocjcrvbvqc51l
2013-11-26 17:16:58 +01:00
Christophe Simonis b1b787545b [FIX] purchase_requisition: choose the right warehouse when creating purchase requisitions from procurement orders + allow to work in batch.
bzr revid: chs@openerp.com-20131126135254-96l4xk9q4fd0iwpu
2013-11-26 14:52:54 +01:00
Christophe Simonis b81c3897ee [FIX] purchase: choose the right warehouse when creating purchase orders from procurement orders
bzr revid: chs@openerp.com-20131126135026-echb4fq37229g637
2013-11-26 14:50:26 +01:00
Christophe Simonis 465d83e880 [FIX] procurement: procurement orders does not have a `warehouse_id` field
bzr revid: chs@openerp.com-20131126134952-cotbhc8s60zj44ts
2013-11-26 14:49:52 +01:00
Thibault Delavallée a6ae52affa [FIX] mail_followers widget: fixed a traceback appearing
when quickly changing the displayed record in a form view when the
followers widget is displayed. This was due to variables not correctly
set because of a concurrence issue.
However there is no need to hse this.view.datarecord or dataset as
the function already receives its id as argument.

bzr revid: tde@openerp.com-20131126124630-2m5wjwr008ys1e9e
2013-11-26 13:46:30 +01:00
Thibault Delavallée 4468d52283 [DOC] mail: cleaned a comment
bzr revid: tde@openerp.com-20131126121649-nywrh4hc1mcpwleh
2013-11-26 13:16:49 +01:00
Thibault Delavallée f2c23488c3 [FIX] email_template: fixing to have the correct report suppose to correctly fix. So, fix the fix to fix it
bzr revid: tde@openerp.com-20131126120843-gt8vdhl3yn61vd8r
2013-11-26 13:08:43 +01:00
Thibault Delavallée 974675bcbf [FIX] mail: attachments encoding issue: posting process
waits not encoded attachments: email_template encodes them. So de-encoding
is necessary.

bzr revid: tde@openerp.com-20131126120336-5lcp9ii7z9lru5vr
2013-11-26 13:03:36 +01:00
Christophe Simonis 6e574a8e4d [IMP] res.users: avoid reading all fields explictly when computing reified groups
bzr revid: chs@openerp.com-20131126111228-cjnp11nc6l383q5r
2013-11-26 12:12:28 +01:00
Thibault Delavallée cf214ed724 [FIX] mail: when generating pure email mass mailing
we have to process attachments as well as attachment_ids in the values generated
by the composer and the optional template.
As this behavior is the same as the one already implemented for message_post, this
feature has been moved into its dedicated method to be called by message_post
or before calling mail_mail.create().
This also allows to have attachments in pure email mass mailing that are attached
to mail.message, not to mail.compose.message model. When unlinking those emails,
the attachments will be also removed, and not lost in the database anymore.

bzr revid: tde@openerp.com-20131126110942-h8p0d9sbjtk0hwlu
2013-11-26 12:09:42 +01:00
Thibault Delavallée 6f322004cc [FIX] email_template: when generating reports
in batch, update the values for all res_ids, not only the
last one of the current template.

bzr revid: tde@openerp.com-20131126110742-aecac7r0zyappo0a
2013-11-26 12:07:42 +01:00
Thibault Delavallée 41ca7536e0 [FIX] mail: when performing pure email mass mailing
attachments were not formatted as a m2m command but a list
of ids. This is now fixed.

bzr revid: tde@openerp.com-20131126095632-txuy00xc1cmqjqcn
2013-11-26 10:56:32 +01:00
Launchpad Translations on behalf of openerp d95ef220d5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060746-ta374lckemq8t257
2013-11-26 06:07:46 +00:00
Thibault Delavallée 4be6ac800b [FIX] mail: in some cases tracking is called
without the context (some workflows for example). In that case use the
current user lang when generating the automatic message. This is done
by adding it in the context if not present.

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

bzr revid: tde@openerp.com-20131125163808-bbbqwvx22my38zdj
2013-11-25 17:38:08 +01:00
Martin Trigaux d547acbc4b [MERGE] [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
bzr revid: mat@openerp.com-20131125162013-z6dhe8eigq7pig0x
2013-11-25 17:20:13 +01:00
Denis Ledoux 7baee28221 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9642 rev-id: dle@openerp.com-20131125160315-tj8n5bv6e5yv8jku
bzr revid: dle@openerp.com-20131125143003-vjtzj1c5051pdnk3
bzr revid: dle@openerp.com-20131125160523-hecq5u2uo0mfyoq0
2013-11-25 17:05:23 +01:00
Denis Ledoux fd080fb745 [FIX]hr_timesheet_sheet: remove useless css rule, which had the effect of erasing the half timesheet weekly input on ie.
bzr revid: dle@openerp.com-20131125160315-tj8n5bv6e5yv8jku
2013-11-25 17:03:15 +01:00
Thibault Delavallée 1284c5c0d4 [FIX] mail: fixed reply button in mail_mail form view, should reply
to a mail.message, not a mail.mail.

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

bzr revid: tde@openerp.com-20131125155857-m04233fbyan7mglt
2013-11-25 16:58:57 +01:00
Thibault Delavallée 6bfcee2cb7 [FIX] mail: fixed replying to the first message in Inbox that was crashing
lp bug: https://launchpad.net/bugs/1212109 fixed

bzr revid: tde@openerp.com-20131125155349-4wfvjxuffnxyumkd
2013-11-25 16:53:49 +01:00
Christophe Simonis 3211a29d9b [MERGE] forward port of branch 7.0 up to revid 5148 mat@openerp.com-20131125125008-wmpssjk5vygdcc0w
bzr revid: chs@openerp.com-20131125151017-lmj53bxg1pfrr4a7
2013-11-25 16:10:17 +01:00
Olivier 426a643c4f [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
bzr revid: olt@openerp.com-20131125144649-mib0vqic0nppziew
2013-11-25 15:46:49 +01:00
Denis Ledoux 40a7a5dc64 [FIX]hr_timesheet_sheet: report, the join clause of the view was wrong, account_analytic_line is join with hr_timesheet_sheet_sheet thanks to the sheet_id (hat.sheet_id=htss.id), not with the line_id (hat.line_id=htss.id)
bzr revid: dle@openerp.com-20131125142624-wilbjmlgy9yubcgk
2013-11-25 15:26:24 +01:00
Martin Trigaux 9635119fc1 [FIX] fields: execute name_get for function field of type many2one as SUPERUSER_ID (same behaviour as classical many2one)
bzr revid: mat@openerp.com-20131125125008-wmpssjk5vygdcc0w
2013-11-25 13:50:08 +01:00
Martin Trigaux e2102ca9ce [IMP] orm: add missing space in error message during validation
bzr revid: mat@openerp.com-20131125124717-4jsqv0lfu7hpxusi
2013-11-25 13:47:17 +01:00
Martin Trigaux 04908a9911 [FIX] orm: when duplicating translated object, get more coherent source and destination values if default value is specified
user's language: old (untranslated) -> new (translated)
other language: old (untranslated) -> old (translated)

This allows to have coherent behaviour if copy() method is overwritten to change the text (usually applying _('%s (copy)')). The current user will see the translated terms with modification while the translations are kept for others (and need to be updated).
We prefer keeping slightly irrelevant translations (without translated version of '%s (copy)') for other languages than losing it.
The copy_data method does not modify context to get untranslatated values, done fully in copy_translation

bzr revid: mat@openerp.com-20131125122347-5p5oyxab5rf1kk7u
2013-11-25 13:23:47 +01:00
Martin Trigaux 3b5cf5d56c [FIX] translations: fix tests to adapt to new duplication behaviour and remove context hack in copy_data (translations are now fully handled in copy_translation)
bzr revid: mat@openerp.com-20131125115727-o9oejao1ziagqti1
2013-11-25 12:57:27 +01:00
Martin Trigaux 6a5cb66f35 [FIX] sale_crm: return id only for default method of type many2one field in make sale order wizard
bzr revid: mat@openerp.com-20131125112629-s3jtair156aqwvpj
2013-11-25 12:26:29 +01:00
Martin Trigaux fbbc6ea840 [FIX] orm: when duplicating translated object, modify the values to get more coherent values
user's language: old (untranslated) -> new (translated)
other language: old (untranslated) -> old (translated)

This allows to have coherent behaviour if copy() method is overwritten to change the text (usually applying _('%s (copy)')). The current user will see the translated terms with modification while the translations are kept for others (and need to be updated).
We prefer keeping slightly irrelevant translations (without translated version of '%s (copy)') for other languages than losing it.

bzr revid: mat@openerp.com-20131125110736-d6iygeq8om5y4fkz
2013-11-25 12:07:36 +01:00