Commit Graph

74902 Commits

Author SHA1 Message Date
Martin Trigaux bbe50b786a [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
2013-11-20 16:14:39 +01:00
Christophe Simonis c26c178f98 [MERGE] remove warnings
bzr revid: chs@openerp.com-20131120151237-ij9llw0fnhya10f7
2013-11-20 16:12:37 +01:00
Olivier Dony 44664076da [MERGE] Forward-port of latest 7.0 fixes up to rev 9618 rev-id: dle@openerp.com-20131120142131-s333lyva85cyn41o
bzr revid: odo@openerp.com-20131120144059-yyh7emvgdarff09b
bzr revid: odo@openerp.com-20131120144318-11nmn1zj00zmi10z
2013-11-20 15:43:18 +01:00
Martin Trigaux 84deced55e [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
2013-11-20 15:40:02 +01:00
Denis Ledoux 5a0e603589 [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
2013-11-20 15:21:31 +01:00
Olivier Dony b7865502e4 [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
2013-11-20 11:06:27 +01:00
Christophe Simonis da00eab39a [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
2013-11-20 11:06:23 +01:00
Christophe Simonis cd810ea7bd merge upstream
bzr revid: chs@openerp.com-20131119185353-qfhaice61xg7qfhn
2013-11-19 19:53:53 +01:00
Olivier Dony c79b600b1d [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
2013-11-19 19:18:55 +01:00
Denis Ledoux b7988bcc5a [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
2013-11-19 15:02:46 +01:00
Denis Ledoux 2c48cd977b [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
2013-11-19 14:51:43 +01:00
Christophe Simonis f534c7e3f2 [FIX] web: when in monodb mode, allow admin routes to be called without being logged in.
This restore old behavior lost by commit 3882 chs@openerp.com-20131118172304-a54lgu6dm865k8xf

bzr revid: chs@openerp.com-20131119134815-hui4ph7a8ksgfxdt
2013-11-19 14:48:15 +01:00
Olivier Dony 6c109ece30 [FIX] root redirect_with_hash: IE10 also behaves abnormally in case of multiple redirects
bzr revid: odo@openerp.com-20131119105326-0t1cjz1d1ebfzhwq
2013-11-19 11:53:26 +01:00
Launchpad Translations on behalf of openerp 523b10fe44 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131119055635-19g4i058ihed0ivz
2013-11-19 05:56:35 +00:00
Antony Lesuisse 584d21a26f [FIX] field statusbar css color between stages
bzr revid: al@openerp.com-20131118182416-picnqdmcwbqalk2y
2013-11-18 19:24:16 +01:00
Christophe Simonis 07c80735df [FIX] web: avoid calling db_monodb at each request. This is a performance killer. Handle the case of non-existing database at router building.
bzr revid: chs@openerp.com-20131118172304-a54lgu6dm865k8xf
2013-11-18 18:23:04 +01:00
Antony Lesuisse 7c9be80f95 [FIX] jquery browser detection fix
bzr revid: al@openerp.com-20131118180642-xa39ja4o8zt8zd5o
2013-11-18 19:06:42 +01:00
Frédéric van der Essen b261aad229 [IMP] point_of_sale: allow up to 8 payment methods to be displayed simultaneously
bzr revid: fva@openerp.com-20131118172620-tp3viaggc12wvjtl
2013-11-18 18:26:20 +01:00
Martin Trigaux b124712b57 [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
2013-11-18 18:16:56 +01:00
Martin Trigaux d3e25aa5e9 [IMP] account: cleanup
bzr revid: mat@openerp.com-20131118165631-13pfg3w6ri0zbuau
2013-11-18 17:56:31 +01:00
Martin Trigaux d23977c106 [IMP] account: revert wrong commit 9590 and set default value with customer refrence
bzr revid: mat@openerp.com-20131118165353-nbk1wwdri1dnl4wh
2013-11-18 17:53:53 +01:00
Denis Ledoux f0ee6bac0a [FIX]email_template: render_template_batch return a dict, so we must get the right id of the dict to get the lang
bzr revid: dle@openerp.com-20131118163114-rpmyjik1dkjuipez
2013-11-18 17:31:14 +01:00
Denis Ledoux 9cede6794d [FIX]base: missing quote in domain of res_partner filter on name
bzr revid: dle@openerp.com-20131118155230-hvdm4yqu5fz3w5q4
2013-11-18 16:52:30 +01:00
Denis Ledoux 4dfe327be5 [FIX]email_template: fixed call to render_template_batch using a list of ids instead of only one id.
bzr revid: dle@openerp.com-20131118150129-log6925i4kc3dkxq
2013-11-18 16:01:29 +01:00
Martin Trigaux 706310b35b [MERGE] [IMP] stock: don't display origin (source) field if linked to no picking (opw 595645)
bzr revid: mat@openerp.com-20131118134751-2iu7di8f26ibvm2v
2013-11-18 14:47:51 +01:00
Martin Trigaux fd3e93ec74 [MERGE] [IMP] sale_order_dates: don't require technical feature to display additional fields (opw 594184)
bzr revid: mat@openerp.com-20131118134054-iqtofynf6ippzyr5
2013-11-18 14:40:54 +01:00
Christophe Simonis 33ce0e73db [FIX] When running with --stop-after-init, return code must be not null if any failure happen.
bzr revid: chs@openerp.com-20131118132235-84u5hfccm784ge5l
2013-11-18 14:22:35 +01:00
cto 9849e23204 [MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)
bzr revid: mat@openerp.com-20131118130622-5sbeznvfv1unnpxx
2013-11-18 14:06:22 +01:00
Olivier Dony 4921167d74 [FIX] ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
Just like for the uninstallation process, records should be
deleted with last created first, as an attempt to reverse
the operations in the right order (to avoid errors due to
dependencies between records).

bzr revid: odo@openerp.com-20131118125640-kdo3t34uszqggu13
2013-11-18 13:56:40 +01:00
Martin Trigaux 3b65fb1125 [MERGE] [IMP] pad: catch urllib error, instead of showing traceback display helpful error message (opw 593069)
bzr revid: mat@openerp.com-20131118125113-tuekl7jeazbv86ti
2013-11-18 13:51:13 +01:00
Martin Trigaux e05991bac2 [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
2013-11-18 13:50:17 +01:00
Martin Trigaux e093000ef8 [MERGE] [FIX] purchase: set pricelist action in pricelist submenu instead of top (opw 592320)
bzr revid: mat@openerp.com-20131118124921-dla3fed1ode5zw7y
2013-11-18 13:49:21 +01:00
Martin Trigaux c4ea471c64 [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
2013-11-18 12:10:20 +01:00
Martin Trigaux 363d81e5f0 [IMP] crm: match on contact name while searching for customer for leads (opw 591923)
bzr revid: mat@openerp.com-20131118100324-9s3xwmbk9xrxjm5a
2013-11-18 11:03:24 +01:00
Martin Trigaux 4d105a27d6 [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
2013-11-18 10:49:51 +01:00
Launchpad Translations on behalf of openerp 2160342cea 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
2013-11-18 05:53:19 +00:00
Launchpad Translations on behalf of openerp 5ebdfc937b 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
2013-11-17 05:44:32 +00:00
Christophe Simonis 05378ede0b [FIX] {project_mrp,sale_stock}: attach common process node xmlid to nearest common module, procurement.
We need this change to allow update of project_mrp module if sale_stock is not installed.

bzr revid: chs@openerp.com-20131115235815-zm4wgqxrsk7iiqpp
2013-11-16 00:58:15 +01:00
Frédéric van der Essen 03676cd07e [FIX] point_of_sale: missing commits from last backport from trunk
bzr revid: fva@openerp.com-20131118093920-pz96e91clsfy6exd
2013-11-18 10:39:20 +01:00
Martin Trigaux 1fe9b19c83 [FIX] sale_stock: take into account the value of the customer reference on grouped invoice (opw #599716)
bzr revid: mat@openerp.com-20131115134335-qsu8ceyx86zyfj8j
2013-11-15 14:43:35 +01:00
Christophe Simonis 36b3ea41d8 [MERGE] forward port of branch saas-1 up to revid 3751 chs@openerp.com-20131115104909-3u3mu40g9xnler88
bzr revid: chs@openerp.com-20131115112311-mq197ugcdc38gjnw
2013-11-15 12:23:11 +01:00
Christophe Simonis 993bff902e [MERGE] forward port of branch 7.0 up to revid 4067 chs@openerp.com-20131114142639-ng7wzfjwvvel2nhv
bzr revid: dle@openerp.com-20131112134311-h1vsux0ge17bsqkc
bzr revid: chs@openerp.com-20131114134731-n324awyon0spq624
bzr revid: chs@openerp.com-20130823145204-xwpnlwg0gg2259f6
bzr revid: chs@openerp.com-20130906170157-e7m4pjskyi47q82o
bzr revid: dle@openerp.com-20130909170408-wxgoduzggap6o4ng
bzr revid: dle@openerp.com-20130919141212-ridtrvvfwvu6calr
bzr revid: dle@openerp.com-20131018120136-fvoq337kgx74njsy
bzr revid: dle@openerp.com-20131023103308-18pj2gqq3imrcir7
bzr revid: chs@openerp.com-20131030180528-hqsztaujjjqev8ky
bzr revid: dle@openerp.com-20131106100128-mx8mnguvp321wick
bzr revid: chs@openerp.com-20131115104909-3u3mu40g9xnler88
2013-11-15 11:49:09 +01:00
Launchpad Translations on behalf of openerp 1d354694cf Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131115063223-eu9nf550yqn4iu0g
2013-11-15 06:32:23 +00:00
Olivier Dony 362c25c957 [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
2013-11-15 00:05:08 +01:00
Olivier Dony 7dd7fcf0d5 [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
2013-11-15 00:02:23 +01:00
Nhomar - Vauxoo fc017404e4 [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
2013-11-14 16:37:40 -04:30
Denis Ledoux 8711954c1c [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
2013-11-14 21:45:50 +01:00
Denis Ledoux 4b3ab2142d [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
2013-11-14 21:44:44 +01:00
Christophe Simonis 322578383c [FIX] web: it's better if the route allowing users to log in is accessible without being logged in.
bzr revid: chs@openerp.com-20131114185202-yyhg7opc004hte02
2013-11-14 19:52:02 +01:00
Christophe Simonis 2172b12817 [FIX] auth_oauth: decorator @fragment_to_query_string accept positional arguments
bzr revid: chs@openerp.com-20131114184550-6zm3gzxfqn2d9dwt
2013-11-14 19:45:50 +01:00