Commit Graph

70627 Commits

Author SHA1 Message Date
Olivier Dony 2a209aa75d [FIX] portal: mail access right test is not totally accurate
The access right test expect an exception
to be raised when accessing any of the
followers, but this is not 100% correct,
as the test user (Chell) should be able to
read her own record.
This worked by chance because the ORM
prefetching was triggering an access error
whenever any follower was accessed, but
this was a bug, now fixed in server at
rev-id odo@openerp.com-20131119153700-5sbo2cl13vvqsgz5
revno 5136

bzr revid: odo@openerp.com-20131119175658-1nv5c9iwfizkrasc
2013-11-19 18:56:58 +01:00
Launchpad Translations on behalf of openerp eaa917bef9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131120054418-15be15rhz84vk0et
2013-11-20 05:44:18 +00:00
Martin Trigaux 2d863f53a2 [MERGE] [FIX] stock: add missing context in account move creation during valuation, courtesy of Lorenzo Battistini (Agile BG)
lp bug: https://launchpad.net/bugs/1184610 fixed

bzr revid: mat@openerp.com-20131119164255-qlvy8p40ztzblova
2013-11-19 17:42:55 +01:00
Martin Trigaux a8f47d3747 [MERGE] [FIX] mrp: correctly handle internal type for stock.picking on manufacturing order
lp bug: https://launchpad.net/bugs/1117229 fixed

bzr revid: mat@openerp.com-20131119162522-x4fw8hluvfzt27ha
2013-11-19 17:25:22 +01:00
Martin Trigaux a2a8dffdf7 [MERGE] [FIX] stock: display reception numbers on kanban view with sigular form in case of only one
lp bug: https://launchpad.net/bugs/1119202 fixed

bzr revid: mat@openerp.com-20131119161511-xu6fhzsit0poluff
2013-11-19 17:15:11 +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
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
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
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
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
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
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
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
Denis Ledoux 70d8172d32 [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
2013-11-14 18:52:44 +01:00
Martin Trigaux 7a752f5f03 [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
2013-11-14 17:25:53 +01:00
Martin Trigaux fec1c72452 [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
2013-11-14 16:28:44 +01:00
Martin Trigaux 12883df3bc [MERGE] sync with 7.0
bzr revid: mat@openerp.com-20131114151811-i1rgk3clwb49dp45
2013-11-14 16:18:11 +01:00
Martin Trigaux 7ae9e1c86d [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
2013-11-14 15:44:01 +01:00
Christophe Simonis 1e4b2695d5 [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
2013-11-14 15:26:39 +01:00
Thibault Delavallée ebe580f481 [FIX] portal: mail_message override: do not check access rules for SUPERUSER_ID
bzr revid: tde@openerp.com-20131114123346-dbnrkh6nadl774qe
2013-11-14 13:33:46 +01:00
Thibault Delavallée 20f10d574a [FIX] mail: auto_subscribe: domain for fetching followers was wrong, forgot an AND
bzr revid: tde@openerp.com-20131114121746-lqqr4nzpduk4lfdq
2013-11-14 13:17:46 +01:00
Thibault Delavallée cf40f4e9b0 [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
2013-11-14 12:32:31 +01:00
Christophe Simonis e5ca5a170c [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
2013-11-14 12:08:47 +01:00
Denis Ledoux e5f75b67c0 [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
2013-11-14 10:59:07 +01:00
Denis Ledoux 8be0a5a8e1 [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
2013-11-14 10:57:21 +01:00
Launchpad Translations on behalf of openerp 99ffbd28ed Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131114063103-0ehwa7pk99d5b4k4
2013-11-14 06:31:03 +00:00
Launchpad Translations on behalf of openerp 108ccbf108 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
2013-11-14 06:30:58 +00:00
Martin Trigaux d26e3b8b33 [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
2013-11-13 10:45:23 +01:00
Martin Trigaux 8c3cdce539 [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
2013-11-13 09:28:06 +01:00
Launchpad Translations on behalf of openerp 4231970c8a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131113060802-i0rwt8lkgeckatjo
bzr revid: launchpad_translations_on_behalf_of_openerp-20131113060848-04a2ehku5erssgvr
2013-11-13 06:08:48 +00:00
Christophe Simonis 6cfb4a0370 [FIX] web: do not enforce width of dropdown links
bzr revid: chs@openerp.com-20131112143746-svdfuqvzvvis6vpy
2013-11-12 15:37:46 +01:00
Christophe Simonis 61a8a22f60 [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
2013-11-12 15:36:35 +01:00
Cecile Tonglet 83f6778446 [FIX] Import on model ir.translation was broken because of a missing context
bzr revid: cto@openerp.com-20131112132747-bajrgbwlp0m3z92s
2013-11-12 14:27:47 +01:00
Denis Ledoux 6792d85b44 [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
2013-11-12 14:04:12 +01:00