odoo/odoo.git
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] 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] 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

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

10 years ago[FIX] auth_signup: avoid getting login screen instead of signup when has correct...
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

10 years ago[IMP] account: cleanup
Martin Trigaux [Mon, 18 Nov 2013 16:56:31 +0000 (17:56 +0100)]
[IMP] account: cleanup

bzr revid: mat@openerp.com-20131118165631-13pfg3w6ri0zbuau

10 years ago[IMP] account: revert wrong commit 9590 and set default value with customer refrence
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

10 years ago[MERGE] [IMP] stock: don't display origin (source) field if linked to no picking...
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

10 years ago[MERGE] [IMP] sale_order_dates: don't require technical feature to display additional...
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

10 years ago[MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)
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

10 years ago[MERGE] [IMP] pad: catch urllib error, instead of showing traceback display helpful...
Martin Trigaux [Mon, 18 Nov 2013 12:51:13 +0000 (13:51 +0100)]
[MERGE] [IMP] pad: catch urllib error, instead of showing traceback display helpful error message (opw 593069)

bzr revid: mat@openerp.com-20131118125113-tuekl7jeazbv86ti

10 years ago[MERGE] [FIX] l10n_be: force 2 digits for vat declaration to be accepted by official...
Martin Trigaux [Mon, 18 Nov 2013 12:50:17 +0000 (13:50 +0100)]
[MERGE] [FIX] l10n_be: force 2 digits for vat declaration to be accepted by official website (opw 592464), courtesy of Wim Audenaert

bzr revid: mat@openerp.com-20131118125017-ny42vjg3gs1k0d2e

10 years ago[MERGE] [FIX] purchase: set pricelist action in pricelist submenu instead of top...
Martin Trigaux [Mon, 18 Nov 2013 12:49:21 +0000 (13:49 +0100)]
[MERGE] [FIX] purchase: set pricelist action in pricelist submenu instead of top (opw 592320)

bzr revid: mat@openerp.com-20131118124921-dla3fed1ode5zw7y

10 years ago[FIX] mrp_byproduct: add context arg to method action_confirm to match the one from...
Martin Trigaux [Mon, 18 Nov 2013 11:10:20 +0000 (12:10 +0100)]
[FIX] mrp_byproduct: add context arg to method action_confirm to match the one from mrp (opw 592270)

bzr revid: mat@openerp.com-20131118111020-mtpxj7ohx81gkj6y

10 years ago[IMP] crm: match on contact name while searching for customer for leads (opw 591923)
Martin Trigaux [Mon, 18 Nov 2013 10:03:24 +0000 (11:03 +0100)]
[IMP] crm: match on contact name while searching for customer for leads (opw 591923)

bzr revid: mat@openerp.com-20131118100324-9s3xwmbk9xrxjm5a

10 years ago[FIX] account: set customer reference for the invoice name (customer refrence) while...
Martin Trigaux [Mon, 18 Nov 2013 09:49:51 +0000 (10:49 +0100)]
[FIX] account: set customer reference for the invoice name (customer refrence) while refunding instead of reason of refund (opw 591713)

bzr revid: mat@openerp.com-20131118094951-o2ixt5xyrwlyvzgx

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Mon, 18 Nov 2013 05:53:19 +0000 (05:53 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131116062538-hsi3j63m1pw01qem
bzr revid: launchpad_translations_on_behalf_of_openerp-20131117054515-0jw3bd84wk546u6j
bzr revid: launchpad_translations_on_behalf_of_openerp-20131118055319-wz4qa3cxwowlonxt

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Sun, 17 Nov 2013 05:44:32 +0000 (05:44 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131115063201-mftw45w2ak463rsc
bzr revid: launchpad_translations_on_behalf_of_openerp-20131116062515-voqeczdl0l0262cu
bzr revid: launchpad_translations_on_behalf_of_openerp-20131117054432-u9evqk0z98aqzoqk

10 years ago[FIX] sale_stock: take into account the value of the customer reference on grouped...
Martin Trigaux [Fri, 15 Nov 2013 13:43:35 +0000 (14:43 +0100)]
[FIX] sale_stock: take into account the value of the customer reference on grouped invoice (opw #599716)

bzr revid: mat@openerp.com-20131115134335-qsu8ceyx86zyfj8j

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

bzr revid: launchpad_translations_on_behalf_of_openerp-20131115063223-eu9nf550yqn4iu0g

10 years ago[FIX] base: invalid ISO code for former Venezuela bolivar - ISO 4217 says VEB
Olivier Dony [Thu, 14 Nov 2013 23:05:08 +0000 (00:05 +0100)]
[FIX] base: invalid ISO code for former Venezuela bolivar - ISO 4217 says VEB

XML ID is preserved for compatibility, will be updated in trunk.

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

bzr revid: odo@openerp.com-20131114230508-g1q02h823xg8pj1n

10 years ago[MERGE] base: invalid currency for Venezuela, courtesy of Nhomar (Vauxoo)
Olivier Dony [Thu, 14 Nov 2013 23:02:23 +0000 (00:02 +0100)]
[MERGE] base: invalid currency for Venezuela, courtesy of Nhomar (Vauxoo)

Country data is incorrect for Venezuela, the country currency is VEF not VUB (the old ones) wich technically is incorrect too because it was VEB.

bzr revid: odo@openerp.com-20131114230223-6cvybpthj70hr81m

10 years ago[FIX] Country data is incorrect for Venezuela, the country currency is VEF not VUB...
Nhomar - Vauxoo [Thu, 14 Nov 2013 21:07:40 +0000 (16:37 -0430)]
[FIX] Country data is incorrect for Venezuela, the country currency is VEF not VUB (the old ones) wich techincally is incorrect too because it was VEB, but no problem, only fixing here the VEF to allow test everything correctly.

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

bzr revid: nhomar@gmail.com-20131114210740-oijhkbr2nmi5hoe4

10 years ago[FIX]crm: duplicating lead/opp duplicated the stage and put to false date_open if...
Denis Ledoux [Thu, 14 Nov 2013 20:45:50 +0000 (21:45 +0100)]
[FIX]crm: duplicating lead/opp duplicated the stage and put to false date_open if it was an opp. Now put stage to 'new' stage and set date_open to today if it is an opp

bzr revid: dle@openerp.com-20131114204550-wavibpj1memdx60c

10 years ago[FIX]base_stage: while duplicating (copy), do not set default values date_open and...
Denis Ledoux [Thu, 14 Nov 2013 20:44:44 +0000 (21:44 +0100)]
[FIX]base_stage: while duplicating (copy), do not set default values date_open and date_close to false if default values are already there

bzr revid: dle@openerp.com-20131114204444-rxhzdotyyr2lf7sk

10 years ago[FIX]resource: interval_get_multi crashed when the interval of hours was greater...
Denis Ledoux [Thu, 14 Nov 2013 17:52:44 +0000 (18:52 +0100)]
[FIX]resource: interval_get_multi crashed when the interval of hours was greater than 24, because it was using datetime parameters instead of using timedelta to create a datetime in the future/past

bzr revid: dle@openerp.com-20131114175244-iudygbtpbppuxbds

10 years ago[FIX] procurement: add condition check_move for transition confirm_mto->ready in...
Martin Trigaux [Thu, 14 Nov 2013 16:25:53 +0000 (17:25 +0100)]
[FIX] procurement: add condition check_move for transition confirm_mto->ready in procurement workflow

When no other module is installed, no change of behaviour (check_move returns None, always True)
When stock_location is installed, depending of the order of evaluation of the conditions, could go to ready without passing by move activity, avoid this
Courtesy of Mohammad Alhashash

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

bzr revid: mat@openerp.com-20131114162553-5yzgp4hy9dqdan5t

10 years ago[FIX] product_visible_discount: for consistency reason with other modules don't use...
Martin Trigaux [Thu, 14 Nov 2013 15:28:44 +0000 (16:28 +0100)]
[FIX] product_visible_discount: for consistency reason with other modules don't use pricelist into account when creating invoice (only on SO/PO), don't display negative discounts as well (does not make sense) (opw #598290)

bzr revid: mat@openerp.com-20131114152844-uwhezculogmp1kqp

10 years ago[MERGE] sync with 7.0
Martin Trigaux [Thu, 14 Nov 2013 15:18:11 +0000 (16:18 +0100)]
[MERGE] sync with 7.0

bzr revid: mat@openerp.com-20131114151811-i1rgk3clwb49dp45

10 years ago[FIX] registry: missing a threading.RLock in RegistryManager.get():
Martin Trigaux [Thu, 14 Nov 2013 14:44:01 +0000 (15:44 +0100)]
[FIX] registry: missing a threading.RLock in RegistryManager.get():

if no registry exists and several calls to RegistryManager.get() are called at the same time
by several threads, several registries will be created one after the other and only the last
one will be kept in cls.registries (courtesy of Guewen Baconnier (Camptocamp)

Invert behaviour of commit 3685 because, at that time, the new trigger the schedule_cron_jobs method which ran another lock and called get on the registry. We had a deadlock with the cron. This is no longer the case as we don't call the same method at the end of the creation of the registry and it does not trigger a lock

bzr revid: mat@openerp.com-20131114144401-k00podawlem7cjd1

10 years ago[MERGE][FIX] web: fix race condition in BufferedDataset.
Christophe Simonis [Thu, 14 Nov 2013 14:26:39 +0000 (15:26 +0100)]
[MERGE][FIX] web: fix race condition in BufferedDataset.

Backport of saas-2 commit 3867 nicolas.vanhoren@openerp.com-20131107112017-7omd01ocvnbzx9m6

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

bzr revid: chs@openerp.com-20131114142639-ng7wzfjwvvel2nhv

10 years ago[FIX] portal: mail_message override: do not check access rules for SUPERUSER_ID
Thibault Delavallée [Thu, 14 Nov 2013 12:33:46 +0000 (13:33 +0100)]
[FIX] portal: mail_message override: do not check access rules for SUPERUSER_ID

bzr revid: tde@openerp.com-20131114123346-dbnrkh6nadl774qe

10 years ago[FIX] mail: auto_subscribe: domain for fetching followers was wrong, forgot an AND
Thibault Delavallée [Thu, 14 Nov 2013 12:17:46 +0000 (13:17 +0100)]
[FIX] mail: auto_subscribe: domain for fetching followers was wrong, forgot an AND

bzr revid: tde@openerp.com-20131114121746-lqqr4nzpduk4lfdq

10 years ago[FIX] [IMP] mail: refactored code of message_auto_subscribe.
Thibault Delavallée [Thu, 14 Nov 2013 11:32:31 +0000 (12:32 +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: tde@openerp.com-20131114113231-oyk16t9i3m3wul6k

10 years ago[FIX] web: list views: bubble up failed deferreds.
Christophe Simonis [Thu, 14 Nov 2013 11:08:47 +0000 (12:08 +0100)]
[FIX] web: list views: bubble up failed deferreds.
[FIX] web: list view group: always call post_render method

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

bzr revid: chs@openerp.com-20131114110847-nn382fc60s7u7wp1

10 years ago[FIX]portal_claim: change of record rule for portal group for object portal.claim...
Denis Ledoux [Thu, 14 Nov 2013 09:59:07 +0000 (10:59 +0100)]
[FIX]portal_claim: change of record rule for portal group for object portal.claim, to change behaviour: portal users can now create claims in the portal, read their claims, but cant edit or delete them. They can post messages in the chatter if they want to add something

bzr revid: dle@openerp.com-20131114095907-ge8f97r6kxnv06fx

10 years ago[FIX]crm: several calls to _get_id for external id 'categ_phone2' which were not...
Denis Ledoux [Thu, 14 Nov 2013 09:57:21 +0000 (10:57 +0100)]
[FIX]crm: several calls to _get_id for external id 'categ_phone2' which were not surrounded by try except ValueError

bzr revid: dle@openerp.com-20131114095721-v22dl5yc8bzhvevf

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

bzr revid: launchpad_translations_on_behalf_of_openerp-20131114063103-0ehwa7pk99d5b4k4

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

bzr revid: launchpad_translations_on_behalf_of_openerp-20131114062958-ies8xa3pft7n59ms
bzr revid: launchpad_translations_on_behalf_of_openerp-20131106055135-r0xt2vr04710jh1t
bzr revid: launchpad_translations_on_behalf_of_openerp-20131107055120-r8z445ergt50erlx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131108062620-bvfofx1jl1wb1csh
bzr revid: launchpad_translations_on_behalf_of_openerp-20131110064525-ioceogsmu0nmx2qj
bzr revid: launchpad_translations_on_behalf_of_openerp-20131111053908-gbrp09ast5fhr6iw
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112062316-5uf2bvbzdhkq1b7k
bzr revid: launchpad_translations_on_behalf_of_openerp-20131113060841-bkjcuz4e9rtzn6f9
bzr revid: launchpad_translations_on_behalf_of_openerp-20131114063058-rrm2q5lxkyawuvpz

10 years ago[FIX] html_sanitize: handle the case of empty documents (after sanitization).
Christophe Simonis [Wed, 13 Nov 2013 11:37:15 +0000 (12:37 +0100)]
[FIX] html_sanitize: handle the case of empty documents (after sanitization).
[IMP] test_mail: do not mute logger

bzr revid: chs@openerp.com-20131113113715-tzaog0d6o2u4q0x4

10 years ago[FIX] ir_fields: call selection function with context=None instead of not passing...
Martin Trigaux [Wed, 13 Nov 2013 09:45:23 +0000 (10:45 +0100)]
[FIX] ir_fields: call selection function with context=None instead of not passing argument. Same behaviour as previsously but does not break when have default value for context (eg: _get_language for ir.translation)

bzr revid: mat@openerp.com-20131113094523-67547nkfkfntjelb

10 years ago[MERGE] view form: reduce the number of result in 'search more' view opening to 160...
Martin Trigaux [Wed, 13 Nov 2013 08:28:06 +0000 (09:28 +0100)]
[MERGE] view form: reduce the number of result in 'search more' view opening to 160 records (performances improvement, not filtering every possible record) (opw 593963)

bzr revid: mat@openerp.com-20131113082806-me6uy7cjj6holn56

10 years agoLaunchpad automatic translations update.
Launchpad Translations on behalf of openerp [Wed, 13 Nov 2013 06:08:48 +0000 (06:08 +0000)]
Launchpad automatic translations update.

bzr revid: launchpad_translations_on_behalf_of_openerp-20131113060802-i0rwt8lkgeckatjo
bzr revid: launchpad_translations_on_behalf_of_openerp-20131113060848-04a2ehku5erssgvr

10 years ago[FIX] l10n_be: as l10n_multilang is an optional dependency for dutch translation...
Christophe Simonis [Tue, 12 Nov 2013 19:10:33 +0000 (20:10 +0100)]
[FIX] l10n_be: as l10n_multilang is an optional dependency for dutch translation of the account.chart, the field spoken_languages must be set conditionnaly

bzr revid: chs@openerp.com-20131112191033-hour5mlzka3w6ybp

10 years ago[FIX] stock: stock.picking.in/out (technical models used to separate several picking...
Olivier Dony [Tue, 12 Nov 2013 17:01:33 +0000 (18:01 +0100)]
[FIX] stock: stock.picking.in/out (technical models used to separate several picking types) should also apply _defaults from stock.picking

bzr revid: odo@openerp.com-20131112170133-7o607q6uq2nmuia5

10 years ago[REVERT] stock: commit 9557/OPW 600078 assumes that production lot are guaranteed...
Olivier Dony [Tue, 12 Nov 2013 15:39:25 +0000 (16:39 +0100)]
[REVERT] stock: commit 9557/OPW 600078 assumes that production lot are guaranteed to be set on each relevant move

This assumption is incorrect in OpenERP v7. The WMS
design in OpenERP 7 and previous versions only permits
tracking production lots (aka serial numbers) on
incoming moves, outgoing moves and production moves.
You can specify production lots on internal moves too,
but the system will also generate internal moves for
many reasons, and nothing guarantees that they will
have the right lots assigned.
This is a design decision, and this means that we
must never enforce the availability of specific
production lots.

This features will be available in OpenERP 8 through
the use of an extra concept called "Quants", that
will make this kind of tracking possible.

bzr revid: odo@openerp.com-20131112153925-1s2b8f2eo568wpxh

10 years ago[FIX] procurement: magic bypass transition was incomplete and preventing pulled flows...
Olivier Dony [Tue, 12 Nov 2013 15:17:47 +0000 (16:17 +0100)]
[FIX] procurement: magic bypass transition was incomplete and preventing pulled flows from working

The procurement workflow has a magic `bypass` transition
that acts as a fallback for MTO procurements in case the
necessary modules are not (yet) installed. For example
it will consider a MTO+Buy procurement directly satisfied
if the Purchase module is not yet installed.
However this bypass transition did not properly take
"internal pulled flows" into account, which are added
by the `stock_location` module as a third kind of procurement
type. In this case the bypass would match and never
give stock_location the chance to run.
In order to be consistent with the other procurement
methods, the bypass transition needs to be adapted.

Also updated the check_move() method to make it more
explicit rather than a side-effect.

bzr revid: odo@openerp.com-20131112151747-da67h4yavhz3k29c

10 years ago[FIX] web: do not enforce width of dropdown links
Christophe Simonis [Tue, 12 Nov 2013 14:37:46 +0000 (15:37 +0100)]
[FIX] web: do not enforce width of dropdown links

bzr revid: chs@openerp.com-20131112143746-svdfuqvzvvis6vpy

10 years ago[FIX] web: match base.sass against changes made in base.css in revid 4014 mat@openerp...
Christophe Simonis [Tue, 12 Nov 2013 14:36:35 +0000 (15:36 +0100)]
[FIX] web: match base.sass against changes made in base.css in revid 4014 mat@openerp.com-20130821080933-fiq3zvccgzop02on

bzr revid: chs@openerp.com-20131112143635-ek6yhfifb6ycynku

10 years ago[FIX] Import on model ir.translation was broken because of a missing context
Cecile Tonglet [Tue, 12 Nov 2013 13:27:47 +0000 (14:27 +0100)]
[FIX] Import on model ir.translation was broken because of a missing context

bzr revid: cto@openerp.com-20131112132747-bajrgbwlp0m3z92s

10 years ago[FIX] procurement: order points must procure goods in the specifiedt warehouse
Olivier Dony [Tue, 12 Nov 2013 13:06:12 +0000 (14:06 +0100)]
[FIX] procurement: order points must procure goods in the specifiedt warehouse

The default warehouse picked by procurements only works
for companies that only have on warehouse

bzr revid: odo@openerp.com-20131112130612-brmazfdghrh1ck7x

10 years ago[FIX]report: rml2pdf raise exception if cell is too long to be printed (instead of...
Denis Ledoux [Tue, 12 Nov 2013 13:04:12 +0000 (14:04 +0100)]
[FIX]report: rml2pdf raise exception if cell is too long to be printed (instead of infinite loop). Workaround for reportlab issue #15: https://bitbucket.org/rptlab/reportlab/issue/15/infinite-pages-produced-when-splitting

bzr revid: dle@openerp.com-20131112130412-mbdonb9g7n63w84r

10 years ago[FIX] sale_stock: procuremenr.order object does not have a `property_ids` field....
Christophe Simonis [Tue, 12 Nov 2013 11:56:35 +0000 (12:56 +0100)]
[FIX] sale_stock: procuremenr.order object does not have a `property_ids` field. This field is added by `mrp` module, which we do not depend of.

bzr revid: chs@openerp.com-20131112115635-tgbdeocn9awtbxkq

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

bzr revid: launchpad_translations_on_behalf_of_openerp-20131106055031-tut0ikyn2ukgc3yw
bzr revid: launchpad_translations_on_behalf_of_openerp-20131107055025-9oq3zxk6003gvt9g
bzr revid: launchpad_translations_on_behalf_of_openerp-20131108062531-oo7o57h2u1gxr3q5
bzr revid: launchpad_translations_on_behalf_of_openerp-20131110064337-vgxh4bfudb3xik01
bzr revid: launchpad_translations_on_behalf_of_openerp-20131111053813-4tykju0tdgvvgk8m
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112062220-8edq183y73j5cxns

10 years ago[FIX] l10n_mx: account.chart.template does not have any property_stock_account_{in...
Christophe Simonis [Fri, 8 Nov 2013 23:11:30 +0000 (00:11 +0100)]
[FIX] l10n_mx: account.chart.template does not have any property_stock_account_{in,out}put_categ fields

bzr revid: chs@openerp.com-20131108231130-k7s49xfac9h67kbe

10 years ago[FIX] stock: mute orm logger before checking access rules
Christophe Simonis [Fri, 8 Nov 2013 23:02:24 +0000 (00:02 +0100)]
[FIX] stock: mute orm logger before checking access rules

bzr revid: chs@openerp.com-20131108230224-tqj0tg5xgz8ramwd

10 years ago[FIX] base: test_translation: load an existing translation
Christophe Simonis [Fri, 8 Nov 2013 22:58:20 +0000 (23:58 +0100)]
[FIX] base: test_translation: load an existing translation

bzr revid: chs@openerp.com-20131108225820-i2pea15b7lymyw6t

10 years ago[FIX] stock: mute orm logger before checking access rules
Christophe Simonis [Fri, 8 Nov 2013 22:47:24 +0000 (23:47 +0100)]
[FIX] stock: mute orm logger before checking access rules

bzr revid: chs@openerp.com-20131108224724-3u72ec3molct34he

10 years ago[IMP] stock: do not use assert in (python) tests
Christophe Simonis [Fri, 8 Nov 2013 22:15:35 +0000 (23:15 +0100)]
[IMP] stock: do not use assert in (python) tests

bzr revid: chs@openerp.com-20131108221535-c0lowzwd15d7asd3

10 years agomerge upstream
Christophe Simonis [Fri, 8 Nov 2013 21:56:12 +0000 (22:56 +0100)]
merge upstream

bzr revid: chs@openerp.com-20131108215612-e5f01a1kvyevlry9

10 years ago[FIX] base_action_rule: even test models need access rules (avoid warning)
Christophe Simonis [Fri, 8 Nov 2013 21:54:51 +0000 (22:54 +0100)]
[FIX] base_action_rule: even test models need access rules (avoid warning)

bzr revid: chs@openerp.com-20131108215451-mq18m32ajuuydzjq

10 years ago[FIX] document: even deprecated models need access rules (avoid warning)
Christophe Simonis [Fri, 8 Nov 2013 21:54:08 +0000 (22:54 +0100)]
[FIX] document: even deprecated models need access rules (avoid warning)

bzr revid: chs@openerp.com-20131108215408-xodw6lmvvxvw4te7

10 years ago[FIX] web_test_demo: make test model a TransientModel. This avoid a warning about...
Christophe Simonis [Fri, 8 Nov 2013 21:42:55 +0000 (22:42 +0100)]
[FIX] web_test_demo: make test model a TransientModel. This avoid a warning about the lack of access rules

bzr revid: chs@openerp.com-20131108214255-cgx1r7x8sx1ak4ea

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

bzr revid: launchpad_translations_on_behalf_of_openerp-20131108062624-4ihw3f2dghkrup1n
bzr revid: launchpad_translations_on_behalf_of_openerp-20131110064532-3pcx6sl2w1ioizv9
bzr revid: launchpad_translations_on_behalf_of_openerp-20131111053914-v4h4lfsutiem8fos
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112062321-q35iebzktzu6lw8m

10 years ago[IMP] trml2pdf: like css, invalid style name is not a warning.
Christophe Simonis [Fri, 8 Nov 2013 21:27:09 +0000 (22:27 +0100)]
[IMP] trml2pdf: like css, invalid style name is not a warning.

bzr revid: chs@openerp.com-20131108212709-4dmdbxxh2w1jd51p

10 years agomerge upstream
Christophe Simonis [Fri, 8 Nov 2013 21:21:07 +0000 (22:21 +0100)]
merge upstream

bzr revid: chs@openerp.com-20131108212107-u6ysowkajvg1m371

10 years ago[stock] : Wrong Invoice generated due to product_uos_qty not updated (case ref:600277)
Dhruti Shastri (OpenERP) [Thu, 7 Nov 2013 11:35:47 +0000 (17:05 +0530)]
[stock] : Wrong Invoice generated due to product_uos_qty not updated (case ref:600277)

bzr revid: dhs@tinyerp.com-20131107113547-d6o11hiu7d8y8g4g