odoo/odoo.git
10 years ago[MERGE] [FIX] mail: fixed message_follower_ids function field.
Thibault Delavallée [Mon, 9 Dec 2013 10:08:22 +0000 (11:08 +0100)]
[MERGE] [FIX] mail: fixed message_follower_ids function field.

The set method of the field, set_followers, is now using message_subscribe and message_unsubscribe to have only one access point to adding or removing followers. Previously to this fix it was directly creating entries in the mail_followers table, neglecting the calculation of subtypes and default subtypes.

bzr revid: tde@openerp.com-20131209100822-f19udgfuubshhrg3

10 years ago[MERGE] Sync with 7.0
Thibault Delavallée [Mon, 9 Dec 2013 09:09:03 +0000 (10:09 +0100)]
[MERGE] Sync with 7.0

bzr revid: tde@openerp.com-20131209090903-al4o6uhrhhw4cqcl

10 years ago[REV] mail: removed some changes to be done in trunk, not in 7.0
Thibault Delavallée [Mon, 9 Dec 2013 09:08:02 +0000 (10:08 +0100)]
[REV] mail: removed some changes to be done in trunk, not in 7.0

bzr revid: tde@openerp.com-20131209090802-q8fzn88ia9w6o5pq

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Sun, 8 Dec 2013 05:46:53 +0000 (05:46 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063209-2xi8ba5wu6l6ze00
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054536-mg4w4d6ljq8ji1nj
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063232-l64v1fhf1qcpxm2l
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054646-zixed7abpuze4qt1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131123062625-f7inv72rtg2kel8g
bzr revid: launchpad_translations_on_behalf_of_openerp-20131124054801-1ukcpelfukkvwn60
bzr revid: launchpad_translations_on_behalf_of_openerp-20131125060120-nm8tkfbftg8c88v1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060753-jnx5ran2accmo0lh
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127054000-wtg675pf33f3bkar
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129053028-abszdj4y76smnacb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054555-3u1m1sy1f2og78nn
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055227-mm70khzdfnp4qcj9
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063237-vza5vb51xmd2ipl6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054653-f4zth8j3iczlzcqz

10 years ago[FIX]ir_attachement: not self.pool.get(model) instead of model not in self.pool
Denis Ledoux [Fri, 6 Dec 2013 17:36:02 +0000 (18:36 +0100)]
[FIX]ir_attachement: not self.pool.get(model) instead of model not in self.pool

bzr revid: dle@openerp.com-20131206173602-no831oxc6m1kf6lu

10 years ago[FIX] account: correct name_search on account to be validated even at negation
Martin Trigaux [Fri, 6 Dec 2013 17:00:12 +0000 (18:00 +0100)]
[FIX] account: correct name_search on account to be validated even at negation
added test checking every combinaison of name_search

bzr revid: mat@openerp.com-20131206170012-991vs7pa1yzxvav8

10 years ago[FIX] ir_attachement: search, if the model of the ir_attachement has been removed...
Denis Ledoux [Fri, 6 Dec 2013 16:23:14 +0000 (17:23 +0100)]
[FIX] ir_attachement: search, if the model of the ir_attachement has been removed, the search ignore the attachement.

bzr revid: dle@openerp.com-20131206162314-vjpgtag8qhkl1jhk

10 years ago[MERGE] [FIX] orm: Ignore orm (4, *) operations on one2many if link already exists.
Martin Trigaux [Fri, 6 Dec 2013 14:43:01 +0000 (15:43 +0100)]
[MERGE] [FIX] orm: Ignore orm (4, *) operations on one2many if link already exists.

Web client returns (4, ) operations for unchanged line in one2many widgets.
This allows to skip orm write on object where potentially has no access (eg: timesheet line with another user). (opw 599494)

bzr revid: mat@openerp.com-20131206144301-k6ugjota873nz75d

10 years ago[FIX] orm: inverting the condition seems to work (don't ask why)
Martin Trigaux [Fri, 6 Dec 2013 14:22:20 +0000 (15:22 +0100)]
[FIX] orm: inverting the condition seems to work (don't ask why)

bzr revid: mat@openerp.com-20131206142220-nfqiyeic9fdkejxy

10 years ago[MERGE] [FIX] account: performance improvement on account.analytic.lines
Martin Trigaux [Fri, 6 Dec 2013 13:11:25 +0000 (14:11 +0100)]
[MERGE] [FIX] account: performance improvement on account.analytic.lines
don't create new analytic lines at move creation, will do it once the move is balanced
don't remove analytic lines (to avoid duplicates) at the begining of the validation of a move, will do it once we create the new correct analytic lines (opw 597719)

bzr revid: mat@openerp.com-20131206131125-fvzy62qqx3gnwmw5

10 years ago[FIX] orm: ignore existing link for operation (4, x) in one2many fields
Martin Trigaux [Fri, 6 Dec 2013 12:54:03 +0000 (13:54 +0100)]
[FIX] orm: ignore existing link for operation (4, x) in one2many fields

bzr revid: mat@openerp.com-20131206125403-r6uemlh7jagw01gh

10 years ago[FIX] purchase: warning uom category different only if the changed field is product_u...
Denis Ledoux [Fri, 6 Dec 2013 12:15:52 +0000 (13:15 +0100)]
[FIX] purchase: warning uom category different only if the changed field is product_uom itself.

Changing product_id with a different unit category does not trigger the uom category change warning

bzr revid: dle@openerp.com-20131206121552-xre6jj34cpfuldoa

10 years ago[FIX] sale_stock,stock: change model to stock.picking.out of deliveries to invoice...
Denis Ledoux [Fri, 6 Dec 2013 11:13:36 +0000 (12:13 +0100)]
[FIX] sale_stock,stock: change model to stock.picking.out of deliveries to invoice view in sales

Deliveries to invoice in sales menu should display delivery order only (no incoming shipment). This was already the case thanks to the domain [('type','=','out')], but since the refactor of the module stock, and the division of stock.picking to stock.picking.in and stock.picking.out, the model of this view should be stock.picking.out instead of stock.picking (for instance, to get the actions binding (ir.values) of stock.picking.out model).
+ typo fix in action binding

bzr revid: dle@openerp.com-20131206111336-dg01y92jvjnxy5oi

10 years ago[FIX] account: performance improvement on analytic line creation
Martin Trigaux [Fri, 6 Dec 2013 10:46:59 +0000 (11:46 +0100)]
[FIX] account: performance improvement on analytic line creation
 remove analytic lines (to avoid duplicates) only when create new one instead of each validation of the account move
don't create new analytic lines at move creation, will do it once the move is balanced (unbalanced move should not create analytic lines yet)

bzr revid: mat@openerp.com-20131206104659-vct8a5l9o4nmhwqs

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Fri, 6 Dec 2013 06:24:20 +0000 (06:24 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131205061031-0rg3zuhu9bm4ygcx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131206062420-e5igkn86w68za9sv

10 years ago[IMP] orm: force checking ir.rules on read when accessing only to _classic_write...
Martin Trigaux [Thu, 5 Dec 2013 11:32:54 +0000 (12:32 +0100)]
[IMP] orm: force checking ir.rules on read when accessing only to _classic_write fields (o2m, m2m, function)
More consistent behaviour. Was not able to access unauthorized data (retrieving data on x2m field would trigger security rules) but make sure it raises an exception instead of silently retrieve no data.
Move construct domain inside if clause as no needed before

bzr revid: mat@openerp.com-20131205113254-j3j4bb0p6ed23oht

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 5 Dec 2013 06:10:10 +0000 (06:10 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131205061010-2jn37v8w04xqksgg

10 years ago[FIX] convert: better error message when failed to load csv file (module name already...
Martin Trigaux [Wed, 4 Dec 2013 15:52:44 +0000 (16:52 +0100)]
[FIX] convert: better error message when failed to load csv file (module name already in path, no need to append)

bzr revid: mat@openerp.com-20131204155244-sy223fbt0tmpeqw1

10 years ago[FIX] base: allow all users (including portals) to change their avatar
Denis Ledoux [Wed, 4 Dec 2013 14:59:23 +0000 (15:59 +0100)]
[FIX] base: allow all users (including portals) to change their avatar

Force readonly="0" on field image in preferences view, otherwise the readonly can be set by access rights.
Preferences are written with the UID 1, if the fields are in the WRITEABLE FIELDS list of the object res_users.
This is why any users can edit their preferences even if they do not have the rights to write on res.users.
Forcing readonly="0" to make fields editable in the form.

bzr revid: dle@openerp.com-20131204145923-f7jwoah722q188d7

10 years ago[FIX] sale_crm: wizard crm_make_sale crash if partner_id not sent on the opp.
Denis Ledoux [Wed, 4 Dec 2013 13:36:33 +0000 (14:36 +0100)]
[FIX] sale_crm: wizard crm_make_sale crash if partner_id not sent on the opp.

Because defaults get function of partner_id of wizard read the partner_id of the opp and return the first item of the tuple, but if there isnt a partner on the opp, the read return a false for this field, not a tuple.
No return the first item of the tuple if the partner_id is set, else False

bzr revid: dle@openerp.com-20131204133633-t7wfbnipv3jtss82

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Wed, 4 Dec 2013 05:56:42 +0000 (05:56 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054445-5fy8zd7lvnn9mjp2
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055138-hq05otjnuktjpa48
bzr revid: launchpad_translations_on_behalf_of_openerp-20131204055601-tbzqqhperzffjbjt
bzr revid: launchpad_translations_on_behalf_of_openerp-20131204055642-0rwynvhgvs0r14b3

10 years ago[FIX]portal_sale: add the lang to the email templates (sale.order and account.invoice...
Denis Ledoux [Tue, 3 Dec 2013 14:25:54 +0000 (15:25 +0100)]
[FIX]portal_sale: add the lang to the email templates (sale.order and account.invoice), for the email to be translated in the customer language (as this is the case for regular email templates from sale and account modules-

bzr revid: dle@openerp.com-20131203142554-5yrp5o5wl382oyo3

10 years ago[FIX] Wrong error message when data cannot be loaded at module loading
Cecile Tonglet [Tue, 3 Dec 2013 09:24:33 +0000 (10:24 +0100)]
[FIX] Wrong error message when data cannot be loaded at module loading

bzr revid: cto@openerp.com-20131203092433-uu1brp5csqvvd8yh

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Tue, 3 Dec 2013 06:16:21 +0000 (06:16 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054550-w0k8alfqs2bigurx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055222-2u7o99e48254dceu
bzr revid: launchpad_translations_on_behalf_of_openerp-20131203061621-hyqqh11jt7g0ilqh

10 years ago[FIX]res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough...
Denis Ledoux [Fri, 29 Nov 2013 15:48:06 +0000 (16:48 +0100)]
[FIX]res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security

bzr revid: dle@openerp.com-20131129154806-0gaqdbp6zobdqxy4

10 years ago[FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user...
Denis Ledoux [Fri, 29 Nov 2013 15:47:14 +0000 (16:47 +0100)]
[FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security

bzr revid: dle@openerp.com-20131129154714-pogix71b73nz11qp

10 years ago[FIX] purchase: revert revision 7677 to set a default unit of measure to 'Unit'
Martin Trigaux [Fri, 29 Nov 2013 14:35:22 +0000 (15:35 +0100)]
[FIX] purchase: revert revision 7677 to set a default unit of measure to 'Unit'
This allows to field a purchase.order without showing the units of measure if not product is selected
Revision 7677 was integrated to fix lp:958897 (no change of uom when selecting a product whose uom is in the category 'Units'). This fix did not solve it properly (only for initial value) and introduced another problem. A better fix will be done on the onchange product.

bzr revid: mat@openerp.com-20131129143522-i85e4hvf0p4h3ynn

10 years ago[FIX] crm_claim: the 'My Company' filter was wrong, not useful and not possible to...
Thibault Delavallée [Fri, 29 Nov 2013 10:27:09 +0000 (11:27 +0100)]
[FIX] crm_claim: the 'My Company' filter was wrong, not useful and not possible to achieve. It is therefore set as invisible, and its domain set as void. This won't break any inheriting views, and this filter is ready to be removed in 8.0

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

bzr revid: tde@openerp.com-20131129102709-wq4ftqx1x8h6n9xb

10 years ago[MERGE] [FIX] crm: fixed lead to opportunity wizard customer creation policy (opw...
Thibault Delavallée [Fri, 29 Nov 2013 10:17:06 +0000 (11:17 +0100)]
[MERGE] [FIX] crm: fixed lead to opportunity wizard customer creation policy (opw 596231).

When choosing to link to an existing customer, then changing the action to create
a new customer or to avoid linking, the newly created opportunity was linked
to the previously chosen customer, due to the partner_id field not being
reset and used in the conversion process.

This field is not reset when changing the conversion action, leading to the action
being correctly taken into account.

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

bzr revid: tde@openerp.com-20131129101706-ccsn5u60sw8isroy

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Fri, 29 Nov 2013 05:30:23 +0000 (05:30 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060718-7io3n16co82qp5pu
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127053913-ypnlpggd4wt58pzx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131128060603-kk12b8iu0uhhtist
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129052938-u0wq863etr3sl1cm
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129053023-zlbrprsiq9e7vs39

10 years ago[FIX] stock: switch ids new - old picking in the message informing the back order...
Martin Trigaux [Thu, 28 Nov 2013 14:50:59 +0000 (15:50 +0100)]
[FIX] stock: switch ids new - old picking in the message informing the back order was created (opw 594402)
Post on delivered picking that the backorder was created. Was inconsitent with the field 'Back order of'

bzr revid: mat@openerp.com-20131128145059-p3mw969z3lotkn26

10 years ago[MERGE] [FIX] purchase: fix typo attr -> attrs in form view, courtesy of Joshua Jan...
Martin Trigaux [Thu, 28 Nov 2013 11:52:39 +0000 (12:52 +0100)]
[MERGE] [FIX] purchase: fix typo attr -> attrs in form view, courtesy of Joshua Jan (SHINEIT)

bzr revid: mat@openerp.com-20131128115239-yr0m9a1d2i39v6xm

10 years ago[MERGE] [FIX] document: check method fails if it is called with an id instead of...
Martin Trigaux [Thu, 28 Nov 2013 11:49:58 +0000 (12:49 +0100)]
[MERGE] [FIX] document: check method fails if it is called with an id instead of a list of ids. Courtesy of Carlos Vásquez (CLEARCORP)

bzr revid: mat@openerp.com-20131128114958-cbwsvntblmjf55cy

10 years ago[MERGE] [FIX] sale_stock: pass missing context when retrieving product uom (opw 594350)
Martin Trigaux [Thu, 28 Nov 2013 11:40:19 +0000 (12:40 +0100)]
[MERGE] [FIX] sale_stock: pass missing context when retrieving product uom (opw 594350)

bzr revid: mat@openerp.com-20131128114019-6rfcq9z235kh7ot7

10 years ago[MERGE] [FIX] mail: css improvement, no overflow when too long words, line break...
Martin Trigaux [Thu, 28 Nov 2013 11:35:20 +0000 (12:35 +0100)]
[MERGE] [FIX] mail: css improvement, no overflow when too long words, line break instead

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

bzr revid: mat@openerp.com-20131128113520-s0i7cri632n7a01g

10 years ago[MERGE] [FIX] sale: use client ref on invoice val instead of name for make invoice...
Martin Trigaux [Thu, 28 Nov 2013 11:32:32 +0000 (12:32 +0100)]
[MERGE] [FIX] sale: use client ref on invoice val instead of name for make invoice wizard, same behaviour as creation of invoice in classic _prepare_invoice of sale.py. Courtsey of Yannick Vaucher (Camptocamp)

bzr revid: mat@openerp.com-20131128113232-aun2h9fbrfxwffqt

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Thu, 28 Nov 2013 06:06:19 +0000 (06:06 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131128060619-0nswl7lls658nujd

10 years ago[FIX] pad: add break-word css to avoid going out of the field in case of too long...
Martin Trigaux [Wed, 27 Nov 2013 16:03:00 +0000 (17:03 +0100)]
[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

10 years ago[FIX]note: notes with undefined stages did not appear if the user had defined stages...
Denis Ledoux [Wed, 27 Nov 2013 15:18:15 +0000 (16:18 +0100)]
[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

10 years ago[FIX] account: Set the alignment of Total parallel to amount in invoice report
Martin Trigaux [Wed, 27 Nov 2013 14:51:45 +0000 (15:51 +0100)]
[FIX] account: Set the alignment of Total parallel to amount in invoice report

bzr revid: mat@openerp.com-20131127145145-qr48qhkvcw02e9ww

10 years ago[FIX] mail: decode filename at email reception (if non-ascii characters) (opw 591729)
Martin Trigaux [Wed, 27 Nov 2013 12:40:21 +0000 (13:40 +0100)]
[FIX] mail: decode filename at email reception (if non-ascii characters) (opw 591729)

bzr revid: mat@openerp.com-20131127124021-bliapaggdjd1xnuz

10 years ago[MERGE] {purchase,purchase_requisition}: choose the right warehouse when creating...
Christophe Simonis [Wed, 27 Nov 2013 10:44:59 +0000 (11:44 +0100)]
[MERGE] {purchase,purchase_requisition}: choose the right warehouse when creating purchase orders from purchase order/requisition

bzr revid: chs@openerp.com-20131127104459-jb77x7quwcvtifm7

10 years ago[FIX] sale, purchase: don't copy the customer/supplier reference when copying a SO/PO
Quentin (OpenERP) [Wed, 27 Nov 2013 08:46:25 +0000 (09:46 +0100)]
[FIX] sale, purchase: don't copy the customer/supplier reference when copying a SO/PO

bzr revid: qdp-launchpad@openerp.com-20131127084625-dqgoloz4q47zlpti

10 years ago[FIX] purchase_requisition: copy method _get_warehouse from purchase module to avoid...
Christophe Simonis [Tue, 26 Nov 2013 18:07:26 +0000 (19:07 +0100)]
[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

10 years ago[IMP] [FIX] mail: mail_thread :
Thibault Delavallée [Tue, 26 Nov 2013 17:17:52 +0000 (18:17 +0100)]
[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

10 years ago[FIX] purchase: at the validation of the PO, force the company in the context as...
Quentin (OpenERP) [Tue, 26 Nov 2013 17:05:05 +0000 (18:05 +0100)]
[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

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Wed, 27 Nov 2013 05:39:57 +0000 (05:39 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131127053957-ekc1bfm5ohug21aa

10 years ago[FIX]hr_timesheet_sheet: add right-padding to timesheet weekly input in order to...
Denis Ledoux [Tue, 26 Nov 2013 17:00:19 +0000 (18:00 +0100)]
[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

10 years ago[FIX] purchase_requisition: choose the right warehouse when creating purchase requisi...
Christophe Simonis [Tue, 26 Nov 2013 13:52:54 +0000 (14:52 +0100)]
[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

10 years ago[FIX] purchase: choose the right warehouse when creating purchase orders from procure...
Christophe Simonis [Tue, 26 Nov 2013 13:50:26 +0000 (14:50 +0100)]
[FIX] purchase: choose the right warehouse when creating purchase orders from procurement orders

bzr revid: chs@openerp.com-20131126135026-echb4fq37229g637

10 years ago[FIX] procurement: procurement orders does not have a `warehouse_id` field
Christophe Simonis [Tue, 26 Nov 2013 13:49:52 +0000 (14:49 +0100)]
[FIX] procurement: procurement orders does not have a `warehouse_id` field

bzr revid: chs@openerp.com-20131126134952-cotbhc8s60zj44ts

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Tue, 26 Nov 2013 06:07:46 +0000 (06:07 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060746-ta374lckemq8t257

10 years ago[FIX] mail: in some cases tracking is called
Thibault Delavallée [Mon, 25 Nov 2013 16:38:08 +0000 (17:38 +0100)]
[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

10 years ago[MERGE] [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection...
Martin Trigaux [Mon, 25 Nov 2013 16:20:13 +0000 (17:20 +0100)]
[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

10 years ago[FIX] mail: fixed reply button in mail_mail form view, should reply
Thibault Delavallée [Mon, 25 Nov 2013 15:58:57 +0000 (16:58 +0100)]
[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

10 years ago[FIX] mail: fixed replying to the first message in Inbox that was crashing
Thibault Delavallée [Mon, 25 Nov 2013 15:53:49 +0000 (16:53 +0100)]
[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

10 years ago[FIX]hr_timesheet_sheet: remove useless css rule, which had the effect of erasing...
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

10 years ago[BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsol...
Olivier [Mon, 25 Nov 2013 14:46:49 +0000 (15:46 +0100)]
[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

10 years ago[FIX]hr_timesheet_sheet: report, the join clause of the view was wrong, account_analy...
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

10 years ago[FIX] fields: execute name_get for function field of type many2one as SUPERUSER_ID...
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

10 years ago[IMP] orm: add missing space in error message during validation
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

10 years ago[FIX] orm: when duplicating translated object, get more coherent source and destinati...
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

10 years ago[FIX] translations: fix tests to adapt to new duplication behaviour and remove contex...
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

10 years ago[FIX] sale_crm: return id only for default method of type many2one field in make...
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

10 years ago[FIX] orm: when duplicating translated object, modify the values to get more coherent...
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

10 years ago[ADD] i18n: enable Lao language (Laos) as an installation option
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

10 years agoLaunchpad automatic translations update.
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

10 years agoLaunchpad automatic translations update.
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

10 years ago[FIX] ir_translation: correctly match old and new ids on inherit fields
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

10 years ago[REVERT] revert previous commit which:
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

10 years ago[FIX] project: convert int to list for iteration write of account.analytic.account
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

10 years ago[FIX] sale_crm: correctly return id only (would break if readonly field)
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

10 years ago[FIX] web: view list: ensure that the mutex of synchronized method `reload_content...
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

10 years ago[FIX] email.template: add missing parenthesis to filter all data on email and not...
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

10 years ago[IMP] web: avoid double reload() when clicking on a button on a editable form view.
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

10 years agoLaunchpad automatic translations update.
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

10 years ago[MERGE] [FIX] mail: exclude document name from the string to translate (avoid having...
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

10 years ago[MERGE] [IMP] survey: hide readonly field if empty on request form
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

10 years ago[MERGE] [FIX] warning: modify onchange behaviour for purchase.order.line to match...
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

10 years ago[FIX] stock: don't display the evaluated boolean in delivery slip report
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

10 years ago[FIX] stock.picking.in: typo in default_get implementation
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

10 years ago[FIX] email.template: add safe filter over email address to allow emails to be sent...
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

10 years ago[FIX] ir, ir_translation: it was not possible to empty the source of a translation...
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

10 years ago[MERGE] [FIX] sale: sale.order.line, remove duplicated state field that made the...
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

10 years ago[MERGE] [FIX] stock: correctly recount quantity when split on multiple locations...
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

10 years ago[FIX] mail: auto_subscribe: fix subscription, could have subtypes linked to another...
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

10 years agoLaunchpad automatic translations update.
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

10 years ago[FIX] fleet,project allow demo user to create cars and projects
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

10 years ago[MERGE] remove warnings
Christophe Simonis [Wed, 20 Nov 2013 16:10:51 +0000 (17:10 +0100)]
[MERGE] remove warnings

bzr revid: chs@openerp.com-20131120161051-pk7n0itjcxx06uwm

10 years ago[MERGE] [FIX] l10n_fr: Restore the appropriate accounts on tax ACH-19.6, courtesy...
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

10 years ago[MERGE] [FIX] project: add noupdate on data to avoid erasing changes on stages, exclu...
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

10 years ago[MERGE] remove warnings
Christophe Simonis [Wed, 20 Nov 2013 15:12:37 +0000 (16:12 +0100)]
[MERGE] remove warnings

bzr revid: chs@openerp.com-20131120151237-ij9llw0fnhya10f7

10 years ago[MERGE] [FIX] hr_expense: add expenses in state 'Waiting payment' in the search filte...
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

10 years ago[FIX]account: fix _balance func field on account.move.line to always return a result...
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

10 years ago[FIX] orm.browse_record: access error due to prefetch of indirectly referenced record...
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

10 years ago[FIX] l10n_in_hr_payroll: use xmlid instead of name searching salary rule categories...
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

10 years agomerge upstream
Christophe Simonis [Tue, 19 Nov 2013 18:53:53 +0000 (19:53 +0100)]
merge upstream

bzr revid: chs@openerp.com-20131119185353-qfhaice61xg7qfhn

10 years ago[FIX] delivery: the stock.picking.{in,out} workaround was only partial
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

10 years ago[FIX] ir, ir_attachement: traceback if try to create attachement without res_id,...
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

10 years ago[FIX] [IMP] mail: refactored code of message_auto_subscribe.
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