odoo/odoo.git
10 years ago[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 revid:dle@openerp.com...
Denis Ledoux [Mon, 17 Feb 2014 12:42:30 +0000 (13:42 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 revid:dle@openerp.com-20140217124044-o8sgz1esfqeha01f

bzr revid: dle@openerp.com-20140214100922-m6rf7c6x85nv67sl
bzr revid: dle@openerp.com-20140214114713-oab4kbearvv7g3nh
bzr revid: dle@openerp.com-20140214131810-9abebxpfeoga1crn
bzr revid: dle@openerp.com-20140217124230-ov201kfep88f5tn7

10 years ago[FIX] crm: on_change_partner did not set the zip code in lead/opp
Denis Ledoux [Mon, 17 Feb 2014 12:40:44 +0000 (13:40 +0100)]
[FIX] crm: on_change_partner did not set the zip code in lead/opp

bzr revid: dle@openerp.com-20140217124044-o8sgz1esfqeha01f

10 years ago[FIX] getParent() js error when clicking to fast on menu items that load a list view...
Cecile Tonglet [Mon, 17 Feb 2014 10:49:20 +0000 (11:49 +0100)]
[FIX] getParent() js error when clicking to fast on menu items that load a list view after loading a form view

bzr revid: cto@openerp.com-20140217104920-fu8hcqd51bh7qnrp

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Mon, 17 Feb 2014 06:03:28 +0000 (06:03 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064134-tam102h50au851o1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140215073800-2219ymc7ijxq57aa
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064223-17h9wz07b2siswzs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140217060328-7qh928zk8ro30qzb

10 years ago[MERGE] [FIX] databases list: allow to have entries with unicode char in the database...
Martin Trigaux [Fri, 14 Feb 2014 14:44:44 +0000 (15:44 +0100)]
[MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)

This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases)

bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50

10 years ago[MERGE] [FIX] home action: fixing the broken field 'action_id' on the res.users form...
Martin Trigaux [Fri, 14 Feb 2014 13:18:00 +0000 (14:18 +0100)]
[MERGE] [FIX] home action: fixing the broken field 'action_id' on the res.users form (lost with 6.1->7). This field executes a custom action at page load.

bzr revid: mat@openerp.com-20140214131800-9vwuxe9b2zki35il

10 years ago[FIX] mail: word wrapping in pre tags (for mails without html in chatter)
Denis Ledoux [Fri, 14 Feb 2014 13:17:05 +0000 (14:17 +0100)]
[FIX] mail: word wrapping in pre tags (for mails without html in chatter)

bzr revid: dle@openerp.com-20140214131705-efs3bggixyjalxun

10 years ago[FIX] event: on_change methods must return a dict, always.
Denis Ledoux [Fri, 14 Feb 2014 11:46:27 +0000 (12:46 +0100)]
[FIX] event: on_change methods must return a dict, always.

bzr revid: dle@openerp.com-20140214114627-yi05u3y45w797fza

10 years ago[FIX] web_calendar: Do not display empty values in displayed text in calendar view...
Denis Ledoux [Fri, 14 Feb 2014 11:42:58 +0000 (12:42 +0100)]
[FIX] web_calendar: Do not display empty values in displayed text in calendar view cells

bzr revid: dle@openerp.com-20140214114258-0hcsfdwyl61gph0v

10 years ago[IMP] always click on first link to have menus and breadcrumb
Martin Trigaux [Fri, 14 Feb 2014 11:17:07 +0000 (12:17 +0100)]
[IMP] always click on first link to have menus and breadcrumb

bzr revid: mat@openerp.com-20140214111707-7zzpeccs9aanfdct

10 years ago[FIX] login: look at the value of action_id on the current res.users to execute the...
Martin Trigaux [Fri, 14 Feb 2014 11:15:40 +0000 (12:15 +0100)]
[FIX] login: look at the value of action_id on the current res.users to execute the action instead of the first link (Inbox). Bring back 6.1 behaviour.

bzr revid: mat@openerp.com-20140214111540-sbn3y6ou3vrjza15

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Fri, 14 Feb 2014 07:48:35 +0000 (07:48 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074449-flu4n6hfh9nua9t3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074835-2p2r1vb6ucynbspm

10 years ago[FIX] account: move_line_quick_add js, set the domain in the dataset (for instance...
Denis Ledoux [Thu, 13 Feb 2014 18:04:59 +0000 (19:04 +0100)]
[FIX] account: move_line_quick_add js, set the domain in the dataset (for instance, for export tool) + performance improvement (no need to re-compute journal list and period list each time a search is done)

bzr revid: dle@openerp.com-20140213180459-mln0btlduc1fox0x

10 years ago[FIX] [IMP] mail: Wall widget: clickable links on the wall now use
Thibault Delavallée [Thu, 13 Feb 2014 15:16:38 +0000 (16:16 +0100)]
[FIX] [IMP] mail: Wall widget: clickable links on the wall now use
the mail.action_mail_redirect client action that redirects to the correct
form view, like the link used in notification emails.

bzr revid: tde@openerp.com-20140213151638-ev2va4y3tmm9m7i8

10 years ago[FIX] base_vat: support Irish Tax numbers introduced in 2013
Olivier Dony [Thu, 13 Feb 2014 14:12:46 +0000 (15:12 +0100)]
[FIX] base_vat: support Irish Tax numbers introduced in 2013

This is a temporary fix until upstream is fixed.
References:
- http://en.wikipedia.org/wiki/Personal_Public_Service_Number
- https://www.welfare.ie/en/Pages/Extension-of-the-Personal-Public-Service-Number-Range.aspx

bzr revid: odo@openerp.com-20140213141246-t56sx1t8x4riey4w

10 years ago[FIX] base_import: auto_install True
Denis Ledoux [Thu, 13 Feb 2014 16:00:03 +0000 (17:00 +0100)]
[FIX] base_import: auto_install True

Import feature should now be regarded as an opt-out feature:
Available by default, but you can disable it if you do not want it.

bzr revid: dle@openerp.com-20140213160003-ljtvzg4pr4iai9i1

10 years ago[MERGE] [FIX] css: Fixed the issue of statubar not aligned with buttons in chrome...
Martin Trigaux [Thu, 13 Feb 2014 14:57:55 +0000 (15:57 +0100)]
[MERGE] [FIX] css: Fixed the issue of statubar not aligned with buttons in chrome browser.

bzr revid: mat@openerp.com-20140213145755-txvtwqbfc83vnw9o

10 years ago[MERGE] [FIX] property fields: in _fnct_write call, make sure the removal of older...
Martin Trigaux [Thu, 13 Feb 2014 13:48:38 +0000 (14:48 +0100)]
[MERGE] [FIX] property fields: in _fnct_write call, make sure the removal of older properties applies only to current company and not to any properties found by the user. (opw 592328)

This was problematic when the admin or a mutlicompany user in parent company set a value for a property field on any record shared through companies. The change would remove the property already set on child companies instead of only replacing the current value.

The test requires previous revision (rev-id mat@openerp.com-20140213121853-mbbk6pkya92hy4xd) of server to avoid commiting changes in _field_create call.

bzr revid: mat@openerp.com-20140213134838-sia2s9vybq5oep65

10 years ago[IMP] move test on property fields to his own test class
Martin Trigaux [Thu, 13 Feb 2014 13:32:54 +0000 (14:32 +0100)]
[IMP] move test on property fields to his own test class

bzr revid: mat@openerp.com-20140213133254-ahzac9o009su3d2x

10 years ago[ADD] tests checking the properties fields are not overwritten by changes in parent...
Martin Trigaux [Thu, 13 Feb 2014 13:10:09 +0000 (14:10 +0100)]
[ADD] tests checking the properties fields are not overwritten by changes in parent companies

bzr revid: mat@openerp.com-20140213131009-25knm17hie7uzeko

10 years ago[MERGE] sync with 7.0 (getting needed orm revision)
Martin Trigaux [Thu, 13 Feb 2014 13:01:50 +0000 (14:01 +0100)]
[MERGE] sync with 7.0 (getting needed orm revision)

bzr revid: mat@openerp.com-20140213130150-9ltjazqiru5apv5k

10 years ago[MERGE] [FIX] remove useless cr.commit in fields creation
Martin Trigaux [Thu, 13 Feb 2014 12:18:53 +0000 (13:18 +0100)]
[MERGE] [FIX] remove useless cr.commit in fields creation

This is require to be able to create revertable tests adding new fields

bzr revid: mat@openerp.com-20140213121853-mbbk6pkya92hy4xd

10 years ago[FIX] remove useless cr.commit in fields creation
Martin Trigaux [Thu, 13 Feb 2014 12:03:49 +0000 (13:03 +0100)]
[FIX] remove useless cr.commit in fields creation
This is require to be able to create revertable tests adding new fields

bzr revid: mat@openerp.com-20140213120349-a0p3bist5l5uyg6b

10 years ago[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9835 revid:launchpad_translat...
Denis Ledoux [Thu, 13 Feb 2014 11:59:51 +0000 (12:59 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9835 revid:launchpad_translations_on_behalf_of_openerp-20140213064742-xiotlx8wzfhexnhc

bzr revid: dle@openerp.com-20140210160759-oybxhdwgv2q4ma5a
bzr revid: odo@openerp.com-20140212122042-3m2tysmr31mtecnc
bzr revid: dle@openerp.com-20140212143044-0c94q4evxl4ltwr0
bzr revid: dle@openerp.com-20140213115951-h7c2o65lgg26aosv

10 years ago[MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. Notably...
Thibault Delavallée [Thu, 13 Feb 2014 11:59:22 +0000 (12:59 +0100)]
[MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. Notably, do not discard the whole email stack or stop after first crashed email processing.

Featuring:
- [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch, revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f. Purpose: some fixes and more robuts handling of incoming emails
- [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts. Indeed assert are statements meant to be used when developping, for debug purpose. In a production environment it is safer to use real exceptions that can be managed accordingly.
- [FIX] mail: fixed tests, no more AssertionError, but ValueError
- [IMP] fetchmail: try / except each email processing. This allows to print an exception in the logs for every failed email processing, without crashing the whole stack. Any failed or succeeded email is set as seen, to avoid crashing every time the scheduler runs.

bzr revid: tde@openerp.com-20140213115922-33vxgj7nfy86ashw

10 years ago[FIX]Web, Statusbar: Fixed the issue of statubar in chrome is aligned, it is aligned...
Mohammed Shekha (OpenERP) [Thu, 13 Feb 2014 11:55:56 +0000 (17:25 +0530)]
[FIX]Web, Statusbar: Fixed the issue of statubar in chrome is aligned, it is aligned in inline block.

bzr revid: msh@openerp.com-20140213115556-irdodahpw0atgy5u

10 years ago[FIX] fetchmail: typos in logger messages
Thibault Delavallée [Thu, 13 Feb 2014 11:29:46 +0000 (12:29 +0100)]
[FIX] fetchmail: typos in logger messages

bzr revid: tde@openerp.com-20140213112946-i351aazw4r2ezfz4

10 years ago[IMP] avoid changing the API by passing the company_id in context
Martin Trigaux [Thu, 13 Feb 2014 10:08:36 +0000 (11:08 +0100)]
[IMP] avoid changing the API by passing the company_id in context

bzr revid: mat@openerp.com-20140213100836-wte9zec4easb0cmw

10 years ago[MERGE] Sync with upstream (7.0)
Thibault Delavallée [Thu, 13 Feb 2014 09:57:46 +0000 (10:57 +0100)]
[MERGE] Sync with upstream (7.0)

bzr revid: tde@openerp.com-20140213095746-qpa6y0r3umxy4oul

10 years ago[IMP] fetchmail: try / except the processinf of each email and log any exception
Thibault Delavallée [Thu, 13 Feb 2014 09:57:17 +0000 (10:57 +0100)]
[IMP] fetchmail: try / except the processinf of each email and log any exception
found during processing. This way, all emails in the queue are managed and
all failed emails have their own exception in the logs, allowing easier
debugging.
Note that a failed email is set as seen to avoid processing it every time
the scheduler runs.

bzr revid: tde@openerp.com-20140213095717-tcwgkl143i3ujw8h

10 years ago[MERGE] sync with 7.0
Martin Trigaux [Thu, 13 Feb 2014 09:57:13 +0000 (10:57 +0100)]
[MERGE] sync with 7.0

bzr revid: mat@openerp.com-20140213095713-b1ys0nu8u7o8ybyr

10 years ago[DOC] mail_thread: docstrings to add raised exceptions in message_process and message...
Thibault Delavallée [Thu, 13 Feb 2014 09:01:22 +0000 (10:01 +0100)]
[DOC] mail_thread: docstrings to add raised exceptions in message_process and message_route

bzr revid: tde@openerp.com-20140213090122-0gwin1pjigwu42sz

10 years ago[FIX] data: _.find (prefered to older _.detect) may return undefined if no match...
Martin Trigaux [Thu, 13 Feb 2014 08:50:08 +0000 (09:50 +0100)]
[FIX] data: _.find (prefered to older _.detect) may return undefined if no match and would trow an error when applying .values
Instead returns undefined which is handled below.
This does not solve the issue when records are not loaded properly but gives a better information on the reason.

bzr revid: mat@openerp.com-20140213085008-pnq4r0ebfl072u78

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 13 Feb 2014 06:47:42 +0000 (06:47 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140213064742-xiotlx8wzfhexnhc

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 13 Feb 2014 06:47:11 +0000 (06:47 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140213064711-5yclxgkdvqsqbldv

10 years ago[FIX] res.users: typo in default search view
Olivier Dony [Wed, 12 Feb 2014 17:59:52 +0000 (18:59 +0100)]
[FIX] res.users: typo in default search view

bzr revid: odo@openerp.com-20140212175952-ehkgu7uyvbymj9od

10 years ago[FIX]account_voucher: do not set account_id to False during onchanges
Denis Ledoux [Wed, 12 Feb 2014 17:37:11 +0000 (18:37 +0100)]
[FIX]account_voucher: do not set account_id to False during onchanges

bzr revid: dle@openerp.com-20140212173711-nvx2gt1bboyey4qg

10 years ago[MERGE] [FIX] image tools: do not crop an image when resizing it, use reduce the...
Martin Trigaux [Wed, 12 Feb 2014 16:16:03 +0000 (17:16 +0100)]
[MERGE] [FIX] image tools: do not crop an image when resizing it, use reduce the size instead and add transparency background (opw 593992)

bzr revid: mat@openerp.com-20140212161603-3u3a47yiruh1jlja

10 years ago[FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch.
Thibault Delavallée [Wed, 12 Feb 2014 16:08:57 +0000 (17:08 +0100)]
[FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch.
Revid: revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f
Purpose: some fixes and more robuts handling of incoming emails

bzr revid: tde@openerp.com-20140212160857-s889npk2q133xvy2

10 years ago[FIX] image tools: do not crop an image when resizing it, use reduce the size instead...
Martin Trigaux [Wed, 12 Feb 2014 15:51:04 +0000 (16:51 +0100)]
[FIX] image tools: do not crop an image when resizing it, use reduce the size instead and add transparency background (opw 593992)

bzr revid: mat@openerp.com-20140212155104-zc6hhkzqw6711e9m

10 years ago[FIX] mail: fixed tests, no more assertionerror, but valueerror
Thibault Delavallée [Wed, 12 Feb 2014 15:31:41 +0000 (16:31 +0100)]
[FIX] mail: fixed tests, no more assertionerror, but valueerror

bzr revid: tde@openerp.com-20140212153141-ajwmd26of69tfoer

10 years ago[IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts.
Thibault Delavallée [Wed, 12 Feb 2014 15:27:37 +0000 (16:27 +0100)]
[IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts.
Indeed assert are statements meant to be used when developping, for
debug purpose. In a production environment it is safer to use real
exceptions that can be managed accordingly.

bzr revid: tde@openerp.com-20140212152737-c7q339psd9hi4iwd

10 years ago[FIX] account_voucher: account_id always visible on sales & purchase receipts
Denis Ledoux [Wed, 12 Feb 2014 14:27:37 +0000 (15:27 +0100)]
[FIX] account_voucher: account_id always visible on sales & purchase receipts

account_id is mandatory, and is set thanks to an onchange of partner_id. But partner_id is not required, therefore, if you do not set a customer/supplier, there is no
     account_id set by default.

On the purchase, the account_id was always invisible. Therefore, it was impossible to set the account_id if you did not set any supplier
On the sale, the account_id was invisible if you set the pay_now to pay later. Therefore, it was impossible to set an account_id if you did not set any customer and set pay later.

Anyway, now, account_id is always displayed, so the user can change the value of account_id if the default value provided is not was he wants, whatever the value of the other fields

bzr revid: dle@openerp.com-20140212142737-ox2l9twg3x6ywvqg

10 years ago[FIX] pad: hide chatter in fullscreen mode
Christophe Simonis [Wed, 12 Feb 2014 13:47:47 +0000 (14:47 +0100)]
[FIX] pad: hide chatter in fullscreen mode

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

bzr revid: chs@openerp.com-20140212134747-moiyebzdti4ieyc4

10 years ago[FIX] point_of_sale: sales summary report displays actual amount of taxes, instead...
Denis Ledoux [Wed, 12 Feb 2014 12:14:08 +0000 (13:14 +0100)]
[FIX] point_of_sale: sales summary report displays actual amount of taxes, instead of displaying the amount where the taxe is applied

bzr revid: dle@openerp.com-20140212121408-4tv8ca1ukqempx1k

10 years ago[FIX] base_action_rule: attempt to reuse creator language when evaluating action...
Olivier Dony [Wed, 12 Feb 2014 11:39:24 +0000 (12:39 +0100)]
[FIX] base_action_rule: attempt to reuse creator language when evaluating action filters

Some filters needs to be evaluated with the same
language as their author, e.g. when searching on
translatable field values. When a time-based
action is processed by the scheduled task,
we should thus attempt to reuse the same
language as the author of the corresponding
filter.

bzr revid: odo@openerp.com-20140212113924-77sh4oj6dl2qwqka

10 years ago[FIX]point_of_sale: Mode of payment displayed browse_record object instead of the...
Denis Ledoux [Wed, 12 Feb 2014 11:30:04 +0000 (12:30 +0100)]
[FIX]point_of_sale: Mode of payment displayed browse_record object instead of the name of the method payment

bzr revid: dle@openerp.com-20140212113004-d9eammlp5gtm2m2v

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Wed, 12 Feb 2014 06:23:57 +0000 (06:23 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140212062357-8n13ec90bnclm1ek

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Wed, 12 Feb 2014 06:22:54 +0000 (06:22 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140211064034-ghuxxk02n715othj
bzr revid: launchpad_translations_on_behalf_of_openerp-20140212062254-0hbn6k9636zlrg4k

10 years ago[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5229 revid:launchpad_translat...
Denis Ledoux [Tue, 11 Feb 2014 16:39:02 +0000 (17:39 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5229 revid:launchpad_translations_on_behalf_of_openerp-20140211064034-ghuxxk02n715othj

bzr revid: dle@openerp.com-20140211163902-ya86jr7lwlj1mkk9

10 years ago[MERGE] [FIX] pricelist: correctly take into account uom when computing pricelists...
Martin Trigaux [Tue, 11 Feb 2014 15:27:03 +0000 (16:27 +0100)]
[MERGE] [FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)

The previous behaviour used the uom of the product while it is not necessary the one selected (eg: by default the purchase unit of measure for purchase orders).
This was an issue especially when having a different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

bzr revid: mat@openerp.com-20140211152703-twnzco2dwxeqt8hz

10 years ago[FIX] pricelist: correctly take into account uom when computing pricelists based...
Martin Trigaux [Tue, 11 Feb 2014 14:57:03 +0000 (15:57 +0100)]
[FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)

The previous behaviour used the uom of product while it could be a different one selected (by default the purchase unit of measure for purchase orders).
This was an issue especially when having different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

bzr revid: mat@openerp.com-20140211145703-9uut4hw9aqh7326o

10 years ago[FIX] invitation wizard: subject on invitation wizard is not translatable
Amit Dodiya (OpenERP) [Tue, 11 Feb 2014 10:51:03 +0000 (16:21 +0530)]
[FIX] invitation wizard: subject on invitation wizard is not translatable

bzr revid: ado@tinyerp.com-20140211105103-1acfgp8htr1nb1uj

10 years ago[FIX] ir.actions: active_model may not always match current model, in which case...
Olivier Dony [Tue, 11 Feb 2014 08:25:46 +0000 (09:25 +0100)]
[FIX] ir.actions: active_model may not always match current model, in which case `object` should be `None`

bzr revid: odo@openerp.com-20140211082546-tgenye70etn21ih5

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Tue, 11 Feb 2014 06:41:29 +0000 (06:41 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140211064129-f1q7m95fq4tplc1s

10 years ago[FIX] point_of_sale: distraction error from revision 9814 revid:dle@openerp.com-20140...
Denis Ledoux [Mon, 10 Feb 2014 16:06:45 +0000 (17:06 +0100)]
[FIX] point_of_sale: distraction error from revision 9814 revid:dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp, missing .id in order to compare company for taxes

bzr revid: dle@openerp.com-20140210160645-ww7af7sbkpjf6oss

10 years ago[MERGE] [FIX] html_sanitize: partial backport of trunk revision 5047 (opw 603452).
Martin Trigaux [Mon, 10 Feb 2014 15:28:06 +0000 (16:28 +0100)]
[MERGE] [FIX] html_sanitize: partial backport of trunk revision 5047 (opw 603452).
Unescape elements that have been wrongly escaped.

Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.

bzr revid: mat@openerp.com-20140210152806-rl5h3twgq8dd203d

10 years ago[FIX] html_sanitize: partial backport of trunk revision 5047.
Martin Trigaux [Mon, 10 Feb 2014 14:40:23 +0000 (15:40 +0100)]
[FIX] html_sanitize: partial backport of trunk revision 5047.
Unescape elements that have been wrongly escaped.

Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.

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

bzr revid: mat@openerp.com-20140210144023-9sp8cqn07ta5o64y

10 years ago[FIX] email_template: attachments using many2many_binary widget are invisible unless...
Olivier Dony [Mon, 10 Feb 2014 14:36:13 +0000 (15:36 +0100)]
[FIX] email_template: attachments using many2many_binary widget are invisible unless label is present - pending widget fix as well

bzr revid: odo@openerp.com-20140210143613-v56rmg1vwwgfxhhq

10 years ago[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9824 revid:dle@openerp.com...
Denis Ledoux [Mon, 10 Feb 2014 14:17:04 +0000 (15:17 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9824 revid:dle@openerp.com-20140210134603-ck0jr56xhl8xgzg2

bzr revid: dle@openerp.com-20140210141704-sjzjwhe7fh5gszxr

10 years ago[IMP] ir.actions.server: add `datetime` and `dateutil` in default eval context +...
Olivier Dony [Mon, 10 Feb 2014 14:09:33 +0000 (15:09 +0100)]
[IMP] ir.actions.server: add `datetime` and `dateutil` in default eval context + make context extensible

bzr revid: odo@openerp.com-20140210140933-7g70205v4mxk9qhz

10 years ago[FIX] close autocomplete listing on input
Denis Ledoux [Mon, 10 Feb 2014 14:00:32 +0000 (15:00 +0100)]
[FIX] close autocomplete listing on input

Closing previously occured on search request (so that a user wouldn't be able
to select "old" data on new search request), but ``search`` is only triggered
after the search delay. Worked when delay was 0, with it being moved to 250 a
user can get results matching the previous search instead of the current one.

Trigger a closing of the current results list on any ``input`` event, which is
when text is entered in any of the searchview's ``InputView``

bzr revid: dle@openerp.com-20140210140032-06dnlxepcc5ae21f

10 years ago[FIX] sale, sale_stock: send by email button visible when sent, progress or manual
Denis Ledoux [Mon, 10 Feb 2014 13:46:03 +0000 (14:46 +0100)]
[FIX] sale, sale_stock: send by email button visible when sent, progress or manual

+ remove 'invoiced' from statusbar_visible, as there is no such state
+ proper inherit in sale_stock form view

bzr revid: dle@openerp.com-20140210134603-ck0jr56xhl8xgzg2

10 years ago[FIX] hr_expense: journal entries should set posted state if journal has Skip Draft...
Amit Dodiya (OpenERP) [Mon, 10 Feb 2014 13:15:14 +0000 (18:45 +0530)]
[FIX] hr_expense: journal entries should set posted state if journal has Skip Draft State for Manual Entries is checked

bzr revid: ado@tinyerp.com-20140210131514-480wqb4m34getdp9

10 years ago[IMP] mail: subscription: if no-one to (un)subscribe, already return. This is not
Thibault Delavallée [Mon, 10 Feb 2014 11:58:27 +0000 (12:58 +0100)]
[IMP] mail: subscription: if no-one to (un)subscribe, already return. This is not
necessary for computation, but saves some browse / access right checking.

bzr revid: tde@openerp.com-20140210115827-2y451i0edgve59mi

10 years ago[FIX] mail: do no pop reply_to if same thread or post in the document is false
Denis Ledoux [Mon, 10 Feb 2014 09:23:01 +0000 (10:23 +0100)]
[FIX] mail: do no pop reply_to if same thread or post in the document is false

Otherwiwse if same thread is checked and post not, the reply_to is forced to the user email to avoid the email to be regarded as private without having a parent mail (has the parent is not posted in the thread), which is not what is expected

bzr revid: dle@openerp.com-20140210092301-1bdyvdwgekwgo9rh

10 years ago[FIX] mail: priority -10 on message_follower_ids to make sure executed before other...
Martin Trigaux [Mon, 10 Feb 2014 08:31:30 +0000 (09:31 +0100)]
[FIX] mail: priority -10 on message_follower_ids to make sure executed before other function field that may use the followers (eg: note.note for access rights)

bzr revid: mat@openerp.com-20140210083130-ag95lqwlpkv7ceqc

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Mon, 10 Feb 2014 05:53:24 +0000 (05:53 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065003-9soyulgvssk8n5ci
bzr revid: launchpad_translations_on_behalf_of_openerp-20140208071621-b018rnkhyxmmm5jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065224-kih7tx56elds0zok
bzr revid: launchpad_translations_on_behalf_of_openerp-20140210055324-raxopm5ej680oc73

10 years ago[FIX] mail: mail_followers.js: fixed the fix about is_follower, use the right variable
Thibault Delavallée [Fri, 7 Feb 2014 08:49:46 +0000 (09:49 +0100)]
[FIX] mail: mail_followers.js: fixed the fix about is_follower, use the right variable

bzr revid: tde@openerp.com-20140207084946-mkh0ht44x5byhrdj

10 years ago[FIX] mail.thread: avoid tracking multiple temporary changes during copy
Olivier Dony [Thu, 6 Feb 2014 17:32:51 +0000 (18:32 +0100)]
[FIX] mail.thread: avoid tracking multiple temporary changes during copy

bzr revid: odo@openerp.com-20140206173251-1njroiu08fzgdbyp

10 years ago[FIX] project.copy(): avoid preparing useless children data to copy, as they are...
Olivier Dony [Thu, 6 Feb 2014 17:27:02 +0000 (18:27 +0100)]
[FIX] project.copy(): avoid preparing useless children data to copy, as they are discared in analytic.copy. Duplicating children is handled by  duplicate_template().

bzr revid: odo@openerp.com-20140206172702-vxdhemegc4yoqzsv

10 years ago[FIX] project.task: simplify delegated tasks remapping after task copy + avoid write...
Olivier Dony [Thu, 6 Feb 2014 17:10:28 +0000 (18:10 +0100)]
[FIX] project.task: simplify delegated tasks remapping after task copy + avoid write() call if not necessary

This avoids recomputing function fields if not
necessary.

bzr revid: odo@openerp.com-20140206171028-p7hpc0x9jpfnb7jv

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Fri, 7 Feb 2014 07:14:00 +0000 (07:14 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140207071400-b3u1081zn9icp7xw

10 years ago[FIX] mail: re-apply security fix correctly from 9812 revid:mat@openerp.com-201402061...
Denis Ledoux [Thu, 6 Feb 2014 17:08:29 +0000 (18:08 +0100)]
[FIX] mail: re-apply security fix correctly from 9812 revid:mat@openerp.com-20140206121438-epghqo042ync24v5 of 7.0 branch

bzr revid: dle@openerp.com-20140206170829-918bxb88qh415w9e

10 years ago[FIX] orm.copy_data: avoid reading useless and possibly expensive data when copying...
Olivier Dony [Thu, 6 Feb 2014 17:04:01 +0000 (18:04 +0100)]
[FIX] orm.copy_data: avoid reading useless and possibly expensive data when copying records

Rather than reading the data and discarding it,
it is much faster to not read it in the first place.

bzr revid: odo@openerp.com-20140206170401-brd6368pe1fmbkkc

10 years ago[FIX]mail: fix indentation problem from previous forward port
Denis Ledoux [Thu, 6 Feb 2014 16:56:30 +0000 (17:56 +0100)]
[FIX]mail: fix indentation problem from previous forward port

bzr revid: dle@openerp.com-20140206165630-13w44y6iewdrsl02

10 years ago[FIX] base: avoid keeping password wizards in the database longer than necessary
Olivier Dony [Thu, 6 Feb 2014 16:45:59 +0000 (17:45 +0100)]
[FIX] base: avoid keeping password wizards in the database longer than necessary

 This patch deletes the wizard lines rather than
 the wizard record itself, to avoid errors in case
 the client reloads the wizard data before actually
 closing it.

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

bzr revid: odo@openerp.com-20140206164559-j0j9o30im0u2hl2g

10 years ago[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9814 revid:dle@openerp.com...
Denis Ledoux [Thu, 6 Feb 2014 16:45:22 +0000 (17:45 +0100)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9814 revid:dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp

bzr revid: dle@openerp.com-20140206164522-fi05cb4mpg22rkv2

10 years ago[FIX] point_of_sale: validate and closing pos sessoin handle multi company
Denis Ledoux [Thu, 6 Feb 2014 16:34:44 +0000 (17:34 +0100)]
[FIX] point_of_sale: validate and closing pos sessoin handle multi company

When the user who validated and closed the pos session was not the same user who created the session, and if this user was not in the same company, it wasnt possible to validate and close the pos session.

This explanation if also valid if the user who created the pos session changed of company in his preferences between the creation and the validation.

bzr revid: dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp

10 years ago[ADD] stock: update pot file to latest version of translations
Martin Trigaux [Thu, 6 Feb 2014 16:00:59 +0000 (17:00 +0100)]
[ADD] stock: update pot file to latest version of translations

bzr revid: mat@openerp.com-20140206160059-7fkwb6havgazmttg

10 years ago[MERGE] [FIX] mail: mail: backport of saas-2 revision 9065 and 9081 and security...
Martin Trigaux [Thu, 6 Feb 2014 12:14:38 +0000 (13:14 +0100)]
[MERGE] [FIX] mail: mail: backport of saas-2 revision 9065 and 9081 and security improvements.

Add followers before super call in mail_thread creation.
This allows to have a value for the _set_followers call and be able to have record rules based on followers at creation.

Set the priority of message_follower_ids fields to -10 (default is 0) to be sure it will be executed before other function fields using these followers (eg: _set_stage_per_user from note.note does a browse which would trigger record rules to read the note)

Context hack to avoid checking read access at creation of the record (check create rules instead)

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

bzr revid: mat@openerp.com-20140206121438-epghqo042ync24v5

10 years ago[IMP] mail: in case of creation, still check creation access rights for subscription
Martin Trigaux [Thu, 6 Feb 2014 12:01:09 +0000 (13:01 +0100)]
[IMP] mail: in case of creation, still check creation access rights for subscription

bzr revid: mat@openerp.com-20140206120109-6h2vz1ulu33t1509

10 years ago[FIX] mail: followers widget: is_follower was not computed if the current user
Thibault Delavallée [Thu, 6 Feb 2014 11:21:45 +0000 (12:21 +0100)]
[FIX] mail: followers widget: is_follower was not computed if the current user
was not in the first 10 displayed followers of the document. Compute is_follower
based on all followers, not just the first 10.

bzr revid: tde@openerp.com-20140206112145-ibir7cj6wxe1ksgt

10 years ago[IMP] mail: check at least access_rights in case of creation
Martin Trigaux [Thu, 6 Feb 2014 11:03:27 +0000 (12:03 +0100)]
[IMP] mail: check at least access_rights in case of creation

bzr revid: mat@openerp.com-20140206110327-zar4yl03r1lympx6

10 years ago[MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141...
Christophe Simonis [Thu, 6 Feb 2014 11:02:20 +0000 (12:02 +0100)]
[MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7

bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v

10 years ago[FIX] _(): avoid useless warning where translating string without a cursor
Christophe Simonis [Thu, 6 Feb 2014 10:51:41 +0000 (11:51 +0100)]
[FIX] _(): avoid useless warning where translating string without a cursor

bzr revid: chs@openerp.com-20140206105141-7e8bv8ordqqsswh7

10 years ago[FIX] mail: backport of saas-2 revision 9065 and 9081.
Martin Trigaux [Thu, 6 Feb 2014 10:47:14 +0000 (11:47 +0100)]
[FIX] mail: backport of saas-2 revision 9065 and 9081.

Make sure the user is subscribed before the super() call in mail_thread. This allows to have follower based record rules working (eg: note.note)

bzr revid: mat@openerp.com-20140206104714-anpehaik4wajnfrw

10 years ago[IMP] reference fields: display a more user-friendly window title when open a chosen...
Martin Trigaux [Thu, 6 Feb 2014 10:24:09 +0000 (11:24 +0100)]
[IMP] reference fields: display a more user-friendly window title when open a chosen many2one record in reference field

bzr revid: mat@openerp.com-20140206102409-4lbx7ofsgz8speni

10 years ago[IMP] ir_fields: no need to sanitize the _str_to_html as it is already done in the...
Martin Trigaux [Thu, 6 Feb 2014 09:46:28 +0000 (10:46 +0100)]
[IMP] ir_fields: no need to sanitize the _str_to_html as it is already done in the _symbol_set of html fields. This avoids doing twice the sanitization.

bzr revid: mat@openerp.com-20140206094628-umx2rfb9rcim7v82

10 years ago[MERGE] [FIX] ir_fields: allow convertion from string to html using sanitize function
Martin Trigaux [Thu, 6 Feb 2014 08:47:08 +0000 (09:47 +0100)]
[MERGE] [FIX] ir_fields: allow convertion from string to html using sanitize function
This is required to be able to import csv file containing html fields

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

bzr revid: mat@openerp.com-20140206084708-j63kpkr9apd3j01j

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 6 Feb 2014 06:25:18 +0000 (06:25 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062518-3g0oj0z7mlartzal

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 6 Feb 2014 06:25:10 +0000 (06:25 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062321-j6cpns6xz3f81net
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062510-x502ahdwzezvea54

10 years ago[MERGE] [FIX] account: action 'Journal Items' on a journal entries should restrict...
Martin Trigaux [Wed, 5 Feb 2014 13:20:57 +0000 (14:20 +0100)]
[MERGE] [FIX] account: action 'Journal Items' on a journal entries should restrict by account.move and not journal (src_model) (opw 585153)

bzr revid: mat@openerp.com-20140205132057-jxxmmyhfk6c15w9o

10 years ago[FIX] typo, wrong ordering of lines
Anael Closson [Wed, 5 Feb 2014 12:52:08 +0000 (13:52 +0100)]
[FIX] typo, wrong ordering of lines

bzr revid: acl@openerp.com-20140205125208-8ds2hxfqnuqsngbd

10 years ago[MERGE] [FIX] search: make sure search view is not destroyed when starting SearchView...
Martin Trigaux [Wed, 5 Feb 2014 10:21:07 +0000 (11:21 +0100)]
[MERGE] [FIX] search: make sure search view is not destroyed when starting SearchView widget
This avoids getting the error 'Cannot call method 'getParent' of undefined'

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

bzr revid: mat@openerp.com-20140205102107-5ggbbkyr172855uu

10 years ago[FIX] account: residual amount computation with refund invoices
Denis Ledoux [Wed, 5 Feb 2014 10:03:24 +0000 (11:03 +0100)]
[FIX] account: residual amount computation with refund invoices

On invoice residual amount computing, we ignore reconcile entries line if their invoice are not of the same type of the current invoice
The above revision(s) will be removed

bzr revid: dle@openerp.com-20140205100324-5tyquozmylcp40p1

10 years ago[FIX] mass_mailing: fixed variables used outside of their scope
Thibault Delavallée [Tue, 4 Feb 2014 16:59:49 +0000 (17:59 +0100)]
[FIX] mass_mailing: fixed variables used outside of their scope

bzr revid: tde@openerp.com-20140204165949-9xax1pul22ktsf41

10 years ago[FIX] css: remove height: 18px on .oe_facet_value property to avoid long filter name...
Martin Trigaux [Tue, 4 Feb 2014 15:50:46 +0000 (16:50 +0100)]
[FIX] css: remove height: 18px on .oe_facet_value property to avoid long filter name to exceed the size of the box (on 2 lines)

bzr revid: mat@openerp.com-20140204155046-ifqts8mpaqhgvjnj

10 years ago[MERGE] [FIX] audittrail: various bugs (opw 603072)
Martin Trigaux [Tue, 4 Feb 2014 15:11:36 +0000 (16:11 +0100)]
[MERGE] [FIX] audittrail: various bugs (opw 603072)

- tracking unlink does not fail anymore
- do not track virtual fields on res.users model (would for .column call)
- make sure read calls with one id works (launchpad bug lp:1214149)
- select the correct model when tracking x2m fields values

bzr revid: mat@openerp.com-20140204151136-51cm1tbgvcsnlsoe

10 years ago[FIX] getParent() js error when clicking to fast on menu items of dashboards
Cecile Tonglet [Tue, 4 Feb 2014 15:05:44 +0000 (16:05 +0100)]
[FIX] getParent() js error when clicking to fast on menu items of dashboards

bzr revid: cto@openerp.com-20140204150544-nkuhxree6qijihq2