Turkesh Patel (Open ERP) [Tue, 26 Nov 2013 12:44:09 +0000 (18:14 +0530)]
[MRG] merge with lp:openerp-web
bzr revid: tpa@tinyerp.com-
20131111121021-6gl22x44n3nxg14f
bzr revid: tpa@tinyerp.com-
20131122085429-9ee7ossuwtr494dz
bzr revid: tpa@tinyerp.com-
20131126124409-yuuu0t7au7trd821
Christophe Simonis [Mon, 25 Nov 2013 16:05:06 +0000 (17:05 +0100)]
[MERGE] forward port of branch saas-2 up to revid 3887 chs@openerp.com-
20131122172422-tsd8wzqkbqknrw1w
bzr revid: chs@openerp.com-
20131125160506-30uia4pdwzpp54gj
Christophe Simonis [Mon, 25 Nov 2013 15:59:56 +0000 (16:59 +0100)]
[IMP] dumpstack dumps greenlets when running in evented mode.
(forward port lost during previous commit)
bzr revid: chs@openerp.com-
20131125155956-x92vq9w4r9ov4vcc
Christophe Simonis [Mon, 25 Nov 2013 15:41:40 +0000 (16:41 +0100)]
[MERGE] forward port of branch saas-2 up to revid 4984 chs@openerp.com-
20131125151017-lmj53bxg1pfrr4a7
bzr revid: chs@openerp.com-
20131125154140-cpbk4tcdml2a3b9n
Christophe Simonis [Mon, 25 Nov 2013 15:10:17 +0000 (16:10 +0100)]
[MERGE] forward port of branch 7.0 up to revid 5148 mat@openerp.com-
20131125125008-wmpssjk5vygdcc0w
bzr revid: chs@openerp.com-
20131125151017-lmj53bxg1pfrr4a7
Christophe Simonis [Mon, 25 Nov 2013 15:00:54 +0000 (16:00 +0100)]
[MERGE] forward port of branch saas-2 up to revid 9010 dle@openerp.com-
20131125143003-vjtzj1c5051pdnk3
bzr revid: chs@openerp.com-
20131125150054-b135qshkx6icakgk
Denis Ledoux [Mon, 25 Nov 2013 16:05:23 +0000 (17:05 +0100)]
[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
Denis Ledoux [Mon, 25 Nov 2013 16:03:15 +0000 (17:03 +0100)]
[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
Denis Ledoux [Mon, 25 Nov 2013 14:26:24 +0000 (15:26 +0100)]
[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
Thibault Delavallée [Mon, 25 Nov 2013 13:04:55 +0000 (14:04 +0100)]
[MERGE] [IMP] chatter: improved 'Log a note'
- the button is now only displayed for employee users. This is done
by overriding the fields_view_get in mail.thread and adding options
to the widget according to the groups the user belongs to. Indeed
it is currently not possible to set widget options specific to
some groups. Therefore an override of fields view get was
necessary.
- small layout improvements: Log a note -> Log an internal note,
background color of notes updated.
bzr revid: tde@openerp.com-
20131125130455-u8517iyr4jgdgoqn
Martin Trigaux [Mon, 25 Nov 2013 12:50:08 +0000 (13:50 +0100)]
[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
Martin Trigaux [Mon, 25 Nov 2013 12:47:17 +0000 (13:47 +0100)]
[IMP] orm: add missing space in error message during validation
bzr revid: mat@openerp.com-
20131125124717-4jsqv0lfu7hpxusi
Martin Trigaux [Mon, 25 Nov 2013 12:23:47 +0000 (13:23 +0100)]
[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
Martin Trigaux [Mon, 25 Nov 2013 11:57:27 +0000 (12:57 +0100)]
[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
Martin Trigaux [Mon, 25 Nov 2013 11:26:29 +0000 (12:26 +0100)]
[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
Thibault Delavallée [Mon, 25 Nov 2013 11:12:53 +0000 (12:12 +0100)]
[MERGE] [IMP] mail: invite wizard: the option of sending an email when inviting someone
is now checked by default.
bzr revid: tde@openerp.com-
20131125111253-926t4d8brmd90el9
Martin Trigaux [Mon, 25 Nov 2013 11:07:36 +0000 (12:07 +0100)]
[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
Thibault Delavallée [Mon, 25 Nov 2013 09:37:41 +0000 (10:37 +0100)]
[MERGE] [IMP] Addons: updated some field labels to avoid duplicates to ease
the import / export process
Aso includes
- project: deprecated priority field: use sequence instead
- base_calendar: calendar.event: deprecated organizer field: use organize_id instead
bzr revid: tde@openerp.com-
20131125093741-hx9hpj85xqfalvqw
ajay javiya (OpenERP) [Mon, 25 Nov 2013 09:23:49 +0000 (14:53 +0530)]
[IMP]: set default 'sendmail' check box true
bzr revid: aja@tinyerp.com-
20131125092349-jpgsilprpag4a2bq
Olivier Dony [Mon, 25 Nov 2013 08:42:15 +0000 (09:42 +0100)]
[ADD] i18n: enable Lao language (Laos) as an installation option
bzr revid: odo@openerp.com-
20131125084215-nddml5h65i2xkuf9
Launchpad Translations on behalf of openerp [Mon, 25 Nov 2013 06:01:11 +0000 (06:01 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131123062620-6obt60lwob64hi98
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131124054757-4w9nik6wieeqf0yg
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131125060111-rf445xxiinvazinv
Launchpad Translations on behalf of openerp [Mon, 25 Nov 2013 06:00:00 +0000 (06:00 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131123062544-0n565bu6p07jgu7c
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131124054736-ndfylcrz06mb9z0i
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131125060000-s033pap6hv11grl3
Launchpad Translations on behalf of openerp [Mon, 25 Nov 2013 05:32:48 +0000 (05:32 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131123060118-7bayd565wi4mh8nk
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131125053223-t2rb928yzma23a29
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131125053248-reb9oruqgxx0v61c
Christophe Simonis [Sun, 24 Nov 2013 16:44:35 +0000 (17:44 +0100)]
[FIX] base: on_change_login only set email for valid emails
bzr revid: chs@openerp.com-
20131124164435-977xi3eg7svn5mgz
Christophe Simonis [Sun, 24 Nov 2013 11:52:35 +0000 (12:52 +0100)]
[FIX] yaml import: for record tags, do not shadow values explicitly set in yaml.
bzr revid: chs@openerp.com-
20131124115235-13sc11q51v95hxfr
Christophe Simonis [Fri, 22 Nov 2013 19:44:15 +0000 (20:44 +0100)]
[FIX] {crm,crm_partner_assign}: email.template: filter the whole expression instead of only the last part
bzr revid: chs@openerp.com-
20131122194415-9ho9vf6f1b0qkmhd
Christophe Simonis [Fri, 22 Nov 2013 19:31:22 +0000 (20:31 +0100)]
[MERGE] forward port of branch 7.0 up to revid 9636 mat@openerp.com-
20131122165504-tmbg0ixhqed4kdkz
bzr revid: chs@openerp.com-
20131122193122-wpdfsfn24ezj1qrp
Martin Trigaux [Fri, 22 Nov 2013 17:59:39 +0000 (18:59 +0100)]
[FIX] ir_translation: correctly match old and new ids on inherit fields
new_id was correctly handled at rev 5118 but the old_id wasn't which could produce inconsistency if there was a gap in ids
bzr revid: mat@openerp.com-
20131122175939-lvlf4ih4pyidqxjp
Christophe Simonis [Fri, 22 Nov 2013 17:24:22 +0000 (18:24 +0100)]
[MERGE] forward port of branch 7.0 up to revid 4075 chs@openerp.com-
20131122170316-lbuxddprrgz1are3
bzr revid: chs@openerp.com-
20131122131553-i22dj95bvofb7aeu
bzr revid: chs@openerp.com-
20131122172422-tsd8wzqkbqknrw1w
Christophe Simonis [Fri, 22 Nov 2013 17:03:16 +0000 (18:03 +0100)]
[REVERT] revert previous commit which:
1. is wrong
2. break runbot
bzr revid: chs@openerp.com-
20131122170316-lbuxddprrgz1are3
Martin Trigaux [Fri, 22 Nov 2013 16:55:04 +0000 (17:55 +0100)]
[FIX] project: convert int to list for iteration write of account.analytic.account
bzr revid: mat@openerp.com-
20131122165504-tmbg0ixhqed4kdkz
Denis Ledoux [Fri, 22 Nov 2013 15:06:06 +0000 (16:06 +0100)]
[FIX]sale: quotation/sale order sent by email were not anymore set to state quotation sent, because the workflow was triggered according to a specific value in the context, which was not there anymore(default_model changed to active_mode, default_res_id changed to active_ids
bzr revid: dle@openerp.com-
20131122150606-ruqe2l0e7gn84upf
Martin Trigaux [Fri, 22 Nov 2013 14:22:11 +0000 (15:22 +0100)]
[FIX] sale_crm: correctly return id only (would break if readonly field)
bzr revid: mat@openerp.com-
20131122142211-pvbw55ikk74132zm
Frédéric van der Essen [Fri, 22 Nov 2013 14:02:48 +0000 (15:02 +0100)]
[MERGE] webclient: FullscreenWidget & IndexedDB allow fullscreen UI for mobile devices and simple storage of large data on the client-side
bzr revid: fva@openerp.com-
20131122140248-vmrbc8z7i6foqwsv
Frédéric van der Essen [Fri, 22 Nov 2013 14:00:48 +0000 (15:00 +0100)]
[IMP] webclient: Introducing SimpleIndexedDB, a key value wrapper around IndexedDB
bzr revid: fva@openerp.com-
20131122140048-goaplzrx26jvcmmu
Frédéric van der Essen [Fri, 22 Nov 2013 13:59:59 +0000 (14:59 +0100)]
[IMP] webclient: Introducing the FullscreenWidget, enabling fullscreen behavior and fixed zoomlevels on mobile devices
bzr revid: fva@openerp.com-
20131122135959-ezv9cmgwp2zfkt00
Christophe Simonis [Fri, 22 Nov 2013 13:10:37 +0000 (14:10 +0100)]
[FIX] web: view list: ensure that the mutex of synchronized method `reload_content` is always released.
bzr revid: chs@openerp.com-
20131122131037-sqxs1fdh4al32eh2
Martin Trigaux [Fri, 22 Nov 2013 10:45:09 +0000 (11:45 +0100)]
[FIX] email.template: add missing parenthesis to filter all data on email and not the last one
bzr revid: mat@openerp.com-
20131122104509-g2pii4m5rj8qpk7w
Christophe Simonis [Thu, 21 Nov 2013 17:09:49 +0000 (18:09 +0100)]
[FIX] email.template: add safe filter over email address to allow emails to be sent in the format 'Name <name@company.com>' and avoid escaping.
followup of commit mat@openerp.com-
20131121151305-t5je12s4w5uctu0k
bzr revid: chs@openerp.com-
20131121170949-5rzr7qovzzkzyvvw
Denis Ledoux [Thu, 21 Nov 2013 15:54:57 +0000 (16:54 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5139 rev-id: dle@openerp.com-
20131121132305-qjlclgz5v9tze1fr
bzr revid: odo@openerp.com-
20131120102545-2tlp031yib6viz35
bzr revid: chs@openerp.com-
20131120161708-c8sbom592moukwxw
bzr revid: dle@openerp.com-
20131121155457-lh7fzouk2upeiu16
Martin Trigaux [Thu, 21 Nov 2013 15:53:24 +0000 (16:53 +0100)]
[FIX] project_issue: remove test checking the convert_issue_task feature
bzr revid: mat@openerp.com-
20131121155324-yg25mzo2css17f13
Olivier Dony [Thu, 21 Nov 2013 15:42:05 +0000 (16:42 +0100)]
[MERGE] Forward-port of latest 7.0 fixes up to rev 9629 rev-id odo@openerp.com-
20131121153230-keie85rmes2zh2o8
bzr revid: chs@openerp.com-
20131121112139-aw2ara1i1xymue62
bzr revid: odo@openerp.com-
20131121154205-ul9hf9tz3h0x2n7m
Olivier Dony [Thu, 21 Nov 2013 15:32:30 +0000 (16:32 +0100)]
[FIX] stock.picking.in: typo in default_get implementation
bzr revid: odo@openerp.com-
20131121153230-keie85rmes2zh2o8
Martin Trigaux [Thu, 21 Nov 2013 15:30:48 +0000 (16:30 +0100)]
[REF] procurement: remove legacy code in scheduler from 6.1
bzr revid: mat@openerp.com-
20131121153048-n1hxpuu8jg3ayyhw
Martin Trigaux [Thu, 21 Nov 2013 15:28:23 +0000 (16:28 +0100)]
[ADD] procurement: add skip_exception parameter on scheduler allowing to have more frequent scheduler only testing confirmed picking
bzr revid: mat@openerp.com-
20131121152823-vphwy0jv9b02ajk2
Martin Trigaux [Thu, 21 Nov 2013 15:25:02 +0000 (16:25 +0100)]
[REF] project_issue: remove unused method convert issue to task (button was removed from view at rev 6898)
bzr revid: mat@openerp.com-
20131121152502-kpsax7jze1cc7lbl
Martin Trigaux [Thu, 21 Nov 2013 15:13:05 +0000 (16:13 +0100)]
[FIX] email.template: add safe filter over email address to allow emails to be sent in the format 'Name <name@company.com>' and avoid escaping
bzr revid: mat@openerp.com-
20131121151305-t5je12s4w5uctu0k
Denis Ledoux [Thu, 21 Nov 2013 13:23:05 +0000 (14:23 +0100)]
[FIX] ir, ir_translation: it was not possible to empty the source of a translation, or this is sometime something that we want
bzr revid: dle@openerp.com-
20131121132305-qjlclgz5v9tze1fr
Martin Trigaux [Thu, 21 Nov 2013 11:33:04 +0000 (12:33 +0100)]
[MERGE] [FIX] sale: sale.order.line, remove duplicated state field that made the statusbar in the header to be incorrectly rendered (opw 598572)
lp bug: https://launchpad.net/bugs/1233567 fixed
bzr revid: mat@openerp.com-
20131121113304-kntnvmdmoll2n6hl
Martin Trigaux [Thu, 21 Nov 2013 11:23:21 +0000 (12:23 +0100)]
[MERGE] [FIX] stock: correctly recount quantity when split on multiple locations for product reservations (opw 600277)
bzr revid: mat@openerp.com-
20131121112321-fdttljrrogsbihf2
Launchpad Translations on behalf of openerp [Thu, 21 Nov 2013 05:28:17 +0000 (05:28 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131121052817-v5bocf8e1j6pbuby
Christophe Simonis [Wed, 20 Nov 2013 18:53:37 +0000 (19:53 +0100)]
[IMP] web: avoid double reload() when clicking on a button on a editable form view.
bzr revid: chs@openerp.com-
20131120185337-w8857fmwosa36r4d
Launchpad Translations on behalf of openerp [Fri, 22 Nov 2013 06:03:13 +0000 (06:03 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131122060235-8k2oxuc94x45jjoc
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131122060308-lb2sgcxbv804pafr
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131116062541-ouuae0dl331ekjcb
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131117054520-eypowk6g8qatvq7n
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131120054421-95x86930ezm0p33h
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131121063904-5igv5f7tgwlaipvv
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131122060313-x4c5bx498gyrkhqr
Martin Trigaux [Thu, 21 Nov 2013 17:05:05 +0000 (18:05 +0100)]
[MERGE] [FIX] mail: exclude document name from the string to translate (avoid having one translation per file name...)
bzr revid: mat@openerp.com-
20131121170505-4i957pyyuz486iy6
Martin Trigaux [Thu, 21 Nov 2013 16:50:12 +0000 (17:50 +0100)]
[MERGE] [IMP] survey: hide readonly field if empty on request form
bzr revid: mat@openerp.com-
20131121165012-lqgg06i6tqzvis4i
Martin Trigaux [Thu, 21 Nov 2013 16:47:23 +0000 (17:47 +0100)]
[MERGE] [FIX] warning: modify onchange behaviour for purchase.order.line to match the one of original purchase.order.line: when removing product, keeps other information instead of setting it to blank. Had the side effet to make impossible to select a unit of measure (required field) without a product (not mandatory)
bzr revid: mat@openerp.com-
20131121164723-02617zye2qnekahz
Martin Trigaux [Thu, 21 Nov 2013 16:14:45 +0000 (17:14 +0100)]
[FIX] stock: don't display the evaluated boolean in delivery slip report
bzr revid: mat@openerp.com-
20131121161445-escpjd0264rh9q28
Denis Ledoux [Wed, 20 Nov 2013 17:12:59 +0000 (18:12 +0100)]
[ADD]crm_partner_assign: add filter to leads and opp searchviews - My Assigned Partners
bzr revid: dle@openerp.com-
20131120171259-z2dnj53e55hl449p
Denis Ledoux [Wed, 20 Nov 2013 17:07:19 +0000 (18:07 +0100)]
[FIX]crm: change typo of opportunities searchview to be consistent to leads searchview
bzr revid: dle@openerp.com-
20131120170719-oenzvh67a2t5281n
Denis Ledoux [Wed, 20 Nov 2013 17:00:02 +0000 (18:00 +0100)]
[FIX]crm_partner_assign: use the probability of the stage of the lead instead of the probability ofthe lead directly to choose the lead to reassign, in case of the data is not correct in database (lead probability null, for instance)
bzr revid: dle@openerp.com-
20131120170002-54qjaz7wr87u65k9
Denis Ledoux [Wed, 20 Nov 2013 16:58:25 +0000 (17:58 +0100)]
[FIX]crm: change typo to be more consistent. Assigned to me > My leads, Assigned to My Team(s) > My Team(s)
bzr revid: dle@openerp.com-
20131120165825-e2xvhl3ualpezwuy
Thibault Delavallée [Wed, 20 Nov 2013 15:43:20 +0000 (16:43 +0100)]
[FIX] mail: auto_subscribe: fix subscription, could have subtypes linked to another model than the current model
bzr revid: tde@openerp.com-
20131120154320-gf67wbv3en2f7ral
Launchpad Translations on behalf of openerp [Thu, 21 Nov 2013 06:38:38 +0000 (06:38 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131121054848-007arsnnoa8fs65e
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131121063838-blqn6j0yfmrlw5vp
Antony Lesuisse [Wed, 20 Nov 2013 16:53:14 +0000 (17:53 +0100)]
[FIX] fleet,project allow demo user to create cars and projects
bzr revid: al@openerp.com-
20131120165314-btwzd5b0yvqcg2gc
Christophe Simonis [Wed, 20 Nov 2013 16:10:51 +0000 (17:10 +0100)]
[MERGE] remove warnings
bzr revid: chs@openerp.com-
20131120161051-pk7n0itjcxx06uwm
Martin Trigaux [Wed, 20 Nov 2013 15:59:59 +0000 (16:59 +0100)]
[MERGE] [FIX] l10n_fr: Restore the appropriate accounts on tax ACH-19.6, courtesy of Alexis de Lattre (akretion)
bzr revid: mat@openerp.com-
20131120155959-kgu0h34wa5k131v0
Martin Trigaux [Wed, 20 Nov 2013 15:14:39 +0000 (16:14 +0100)]
[MERGE] [FIX] project: add noupdate on data to avoid erasing changes on stages, exclude mail.message.subtypes (want overwrite), courtesy of Alex Comba (Agile BG)
lp bug: https://launchpad.net/bugs/1172149 fixed
bzr revid: mat@openerp.com-
20131120151439-96l2z98tebj46fzs
Christophe Simonis [Wed, 20 Nov 2013 15:12:37 +0000 (16:12 +0100)]
[MERGE] remove warnings
bzr revid: chs@openerp.com-
20131120151237-ij9llw0fnhya10f7
Olivier Dony [Wed, 20 Nov 2013 14:43:18 +0000 (15:43 +0100)]
[MERGE] Forward-port of latest 7.0 fixes up to rev 9618 rev-id: dle@openerp.com-
20131120142131-s333lyva85cyn41o
bzr revid: odo@openerp.com-
20131120144059-yyh7emvgdarff09b
bzr revid: odo@openerp.com-
20131120144318-11nmn1zj00zmi10z
Martin Trigaux [Wed, 20 Nov 2013 14:40:02 +0000 (15:40 +0100)]
[MERGE] [FIX] hr_expense: add expenses in state 'Waiting payment' in the search filter 'To Pay' (opw 597054)
bzr revid: mat@openerp.com-
20131120144002-7wzh6zxily5j7mr5
Denis Ledoux [Wed, 20 Nov 2013 14:21:31 +0000 (15:21 +0100)]
[FIX]account: fix _balance func field on account.move.line to always return a result for the request ids
bzr revid: dle@openerp.com-
20131120142131-s333lyva85cyn41o
Olivier Dony [Wed, 20 Nov 2013 10:06:27 +0000 (11:06 +0100)]
[FIX] orm.browse_record: access error due to prefetch of indirectly referenced records (OPW #596679)
The browse_record prefetching algorithm attempts to
load data for all known records from the requested
model (i.e. all IDs present in the browse cache),
regardless of how indirectly/remotely they were
referenced. An indirect parent record may therefore
be prefetched along with its directly browsed children,
possibly crossing company boundaries involuntarily.
This patch implements a fallback mechanism when
the prefetching failed due to what looks like an
ACL restriction. This being a fuzzy concept at the
moment, it does its best to only catch a restricted
set of exceptions, and retry loading the data for
the directly requested ID only.
This may cause a small performance penalty in case
of real errors (with some spurious logging too),
but should only be triggered in very few cases.
The downside when this happens is that the prefetching for that
model gets effectively disabled, requiring multiple
SQL queries for further access to the data of
the other directly browsed records.
This EAFP approach seems safer and faster than
a LBYL technique where we would have to filter
all indirect m2o references according to ACLs
before allowing them to enter the cache.
lp bug: https://launchpad.net/bugs/1238042 fixed
lp bug: https://launchpad.net/bugs/1212429 fixed
bzr revid: odo@openerp.com-
20131120100627-031fljyf4ckprc9b
Christophe Simonis [Wed, 20 Nov 2013 10:06:23 +0000 (11:06 +0100)]
[FIX] l10n_in_hr_payroll: use xmlid instead of name searching salary rule categories (they may have been renamed, forbidding upgrade)
bzr revid: chs@openerp.com-
20131120100623-ip33s4upffu1a52h
Launchpad Translations on behalf of openerp [Wed, 20 Nov 2013 05:25:25 +0000 (05:25 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131119052725-2fcjekn5ouumctna
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131120052525-2pwf2q3wdcrbqics
Christophe Simonis [Tue, 19 Nov 2013 18:53:53 +0000 (19:53 +0100)]
merge upstream
bzr revid: chs@openerp.com-
20131119185353-qfhaice61xg7qfhn
Olivier Dony [Tue, 19 Nov 2013 18:18:55 +0000 (19:18 +0100)]
[FIX] delivery: the stock.picking.{in,out} workaround was only partial
Due to a framework limitation the virtual stock.picking.in
and stock.picking.out models need to duplicate the extra
columns added to the stock.picking master model.
This was only partially done, leading to errors in
some cases when stock.picking.{in,out} were directly
used by business methods.
bzr revid: odo@openerp.com-
20131119181855-cciozs8fv3ll9bd8
Denis Ledoux [Tue, 19 Nov 2013 14:02:46 +0000 (15:02 +0100)]
[FIX] ir, ir_attachement: traceback if try to create attachement without res_id, caused by check access rights trying to check if the user had the right to read the object with a res_id 0
bzr revid: dle@openerp.com-
20131119140246-r8dd7h0di4aigjss
Denis Ledoux [Tue, 19 Nov 2013 13:51:43 +0000 (14:51 +0100)]
[FIX] [IMP] mail: refactored code of message_auto_subscribe.
This new code allows faster computation, because it avoids
- searching in a many2many relationship that is very costly in production
databases, because it is replaced by an 'id in [ids]' equivalent leaf
that can be huge.
- browsing in a create/write (should also lessen the number of issues
about read access rights in create)
A new optionnal parameter is given to the method, that are the
modified values. If this is not given (compatibility-mode) the
records are browsed to fetch the value.
bzr revid: dle@openerp.com-
20131119135143-w4tcsnf8hdiyql0j
Christophe Simonis [Tue, 19 Nov 2013 13:48:15 +0000 (14:48 +0100)]
[FIX] web: when in monodb mode, allow admin routes to be called without being logged in.
This restore old behavior lost by commit 3882 chs@openerp.com-
20131118172304-a54lgu6dm865k8xf
bzr revid: chs@openerp.com-
20131119134815-hui4ph7a8ksgfxdt
Olivier Dony [Tue, 19 Nov 2013 10:53:26 +0000 (11:53 +0100)]
[FIX] root redirect_with_hash: IE10 also behaves abnormally in case of multiple redirects
bzr revid: odo@openerp.com-
20131119105326-0t1cjz1d1ebfzhwq
Martin Trigaux [Tue, 19 Nov 2013 09:15:24 +0000 (10:15 +0100)]
[FIX] company: add missing on_change for font selection
bzr revid: mat@openerp.com-
20131119091524-serz74unvekz9j32
Martin Trigaux [Tue, 19 Nov 2013 08:53:43 +0000 (09:53 +0100)]
[FIX] fonts: add missing onchange on company form
bzr revid: mat@openerp.com-
20131119085343-930hs460m5uzz5xj
Martin Trigaux [Tue, 19 Nov 2013 08:48:34 +0000 (09:48 +0100)]
[MERGE] sync with trunk
bzr revid: mat@openerp.com-
20131119084834-hl9hv380nhlfs7it
Launchpad Translations on behalf of openerp [Tue, 19 Nov 2013 05:56:35 +0000 (05:56 +0000)]
Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-
20131119055635-19g4i058ihed0ivz
Antony Lesuisse [Mon, 18 Nov 2013 18:24:16 +0000 (19:24 +0100)]
[FIX] field statusbar css color between stages
bzr revid: al@openerp.com-
20131118182416-picnqdmcwbqalk2y
Christophe Simonis [Mon, 18 Nov 2013 17:23:04 +0000 (18:23 +0100)]
[FIX] web: avoid calling db_monodb at each request. This is a performance killer. Handle the case of non-existing database at router building.
bzr revid: chs@openerp.com-
20131118172304-a54lgu6dm865k8xf
Antony Lesuisse [Mon, 18 Nov 2013 18:06:42 +0000 (19:06 +0100)]
[FIX] jquery browser detection fix
bzr revid: al@openerp.com-
20131118180642-xa39ja4o8zt8zd5o
Frédéric van der Essen [Mon, 18 Nov 2013 17:26:20 +0000 (18:26 +0100)]
[IMP] point_of_sale: allow up to 8 payment methods to be displayed simultaneously
bzr revid: fva@openerp.com-
20131118172620-tp3viaggc12wvjtl
Frédéric van der Essen [Mon, 18 Nov 2013 17:23:01 +0000 (18:23 +0100)]
[IMP] point_of_sale: allow up to 8 simultaneous payment methods to be displayed at once
bzr revid: fva@openerp.com-
20131118172301-c71ic2xazlkjhr4d
Martin Trigaux [Mon, 18 Nov 2013 17:16:56 +0000 (18:16 +0100)]
[FIX] auth_signup: avoid getting login screen instead of signup when has correct invitation token due to concurrent calls (opw #598453)
bzr revid: mat@openerp.com-
20131118171656-j949pzklez13tfyt
Martin Trigaux [Mon, 18 Nov 2013 16:56:31 +0000 (17:56 +0100)]
[IMP] account: cleanup
bzr revid: mat@openerp.com-
20131118165631-13pfg3w6ri0zbuau
Martin Trigaux [Mon, 18 Nov 2013 16:53:53 +0000 (17:53 +0100)]
[IMP] account: revert wrong commit 9590 and set default value with customer refrence
bzr revid: mat@openerp.com-
20131118165353-nbk1wwdri1dnl4wh
Denis Ledoux [Mon, 18 Nov 2013 16:31:14 +0000 (17:31 +0100)]
[FIX]email_template: render_template_batch return a dict, so we must get the right id of the dict to get the lang
bzr revid: dle@openerp.com-
20131118163114-rpmyjik1dkjuipez
Denis Ledoux [Mon, 18 Nov 2013 15:52:30 +0000 (16:52 +0100)]
[FIX]base: missing quote in domain of res_partner filter on name
bzr revid: dle@openerp.com-
20131118155230-hvdm4yqu5fz3w5q4
Denis Ledoux [Mon, 18 Nov 2013 15:01:29 +0000 (16:01 +0100)]
[FIX]email_template: fixed call to render_template_batch using a list of ids instead of only one id.
bzr revid: dle@openerp.com-
20131118150129-log6925i4kc3dkxq
Martin Trigaux [Mon, 18 Nov 2013 13:47:51 +0000 (14:47 +0100)]
[MERGE] [IMP] stock: don't display origin (source) field if linked to no picking (opw 595645)
bzr revid: mat@openerp.com-
20131118134751-2iu7di8f26ibvm2v
Martin Trigaux [Mon, 18 Nov 2013 13:40:54 +0000 (14:40 +0100)]
[MERGE] [IMP] sale_order_dates: don't require technical feature to display additional fields (opw 594184)
bzr revid: mat@openerp.com-
20131118134054-iqtofynf6ippzyr5
Christophe Simonis [Mon, 18 Nov 2013 13:22:35 +0000 (14:22 +0100)]
[FIX] When running with --stop-after-init, return code must be not null if any failure happen.
bzr revid: chs@openerp.com-
20131118132235-84u5hfccm784ge5l
cto [Mon, 18 Nov 2013 13:06:22 +0000 (14:06 +0100)]
[MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)
bzr revid: mat@openerp.com-
20131118130622-5sbeznvfv1unnpxx
Olivier Dony [Mon, 18 Nov 2013 12:56:40 +0000 (13:56 +0100)]
[FIX] ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
Just like for the uninstallation process, records should be
deleted with last created first, as an attempt to reverse
the operations in the right order (to avoid errors due to
dependencies between records).
bzr revid: odo@openerp.com-
20131118125640-kdo3t34uszqggu13