Commit Graph
74987 Commits
Author SHA1 Message Date
Xavier Morel 663ea78caa [ADD] handling of slugs in ModelConverter (generation & parsing)
bzr revid: xmo@openerp.com-20131108154756-znkcyd32csd7vj1u
2013-11-08 16:47:56 +01:00
Xavier Morel 565df0c0bf [IMP] ModelConverter
* add generate method to indicate that the converter can produce
  values it can consume

* fix to_url, should return a string

bzr revid: xmo@openerp.com-20131108132135-n80fot7xv6by43dx
2013-11-08 14:21:35 +01:00
Xavier Morel e3c3c42ce2 [IMP] run_tests
* deduplicate addons paths, on runbot the tests are run twice and
  indeed when listing test modules some are listed twice, maybe due to
  duplicated addons paths?

  Test modules:
     openerp.tests.test_mail_examples
     openerp.tests.test_uninstall
     openerp.addons.web.tests.test_js
     openerp.addons.website.tests.test_requests
     openerp.addons.project.tests.test_project_base
     openerp.addons.web.tests.test_js
     openerp.addons.website.tests.test_requests
     openerp.addons.project.tests.test_project_base

* flush stdout after having printed test modules list to try and
  ensure it appears before the tests result (the TextTestRunner
  outputs to stderr and this gets flushed a lot as there's a huge
  amount of data going into it)

bzr revid: xmo@openerp.com-20131106134032-m85o6osa7ezgizt9
2013-11-06 14:40:32 +01:00
Xavier Morel 4abde33785 [IMP] always print a recap of found test modules before running the tests
bzr revid: xmo@openerp.com-20131106130743-xpy9i34b5xceo8ee
2013-11-06 14:07:43 +01:00
Xavier Morel 6906d24e17 [FIX] stray tabs in openerpcommand
bzr revid: xmo@openerp.com-20131105140421-jtg9xa0lcxuix45z
2013-11-05 15:04:21 +01:00
Xavier Morel 3a51d98210 [FIX] correctly handle listification of args.addons
bzr revid: xmo@openerp.com-20131105140109-nzohz5z83mknhtgl
2013-11-05 15:01:09 +01:00
Xavier Morel 5b59611dd3 [IMP] run-tests: add --slow-suite
* make --fast-suite, --sanity-checks and --slow-suite exclusive at
  argument parsing time
* split module directly in the argument parser

bzr revid: xmo@openerp.com-20131105135534-kzwph02kwxl77ivf
2013-11-05 14:55:34 +01:00
Xavier Morel baa3743420 [FIX] double-escaping on 500 errors
HTTPException.get_description already escapes the provided description on output

bzr revid: xmo@openerp.com-20131104125908-1gy9poyy9s0vk2rq
2013-11-04 13:59:08 +01:00
Xavier Morel 3389198f81 [IMP] remove unnecessary keys() calls
bzr revid: xmo@openerp.com-20131104125735-wtnngolx07755o1u
2013-11-04 13:57:35 +01:00
Antony Lesuisse a17a49e130 [FIX] qweb exception hiding
bzr revid: al@openerp.com-20131102165515-4p7401k5tl95l4lg
2013-11-02 17:55:15 +01:00
Antony Lesuisse 8ff22a5322 [IMP] models route converter typo
bzr revid: al@openerp.com-20131031125653-nhtt01wlnz0cnn22
2013-10-31 13:56:53 +01:00
Antony Lesuisse b975f9a13b [IMP] models route converter
bzr revid: al@openerp.com-20131031115429-h14hly3i6yn48q3j
2013-10-31 12:54:29 +01:00
Antony Lesuisse b40a8f34ea [IMP] model convert for routes, to directly get the browse record
example @route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")

bzr revid: al@openerp.com-20131030230043-4fohcd1wdjc10ip7
2013-10-31 00:00:43 +01:00
Antony Lesuisse a9f9cd06c7 [FIX] typxmo
bzr revid: al@openerp.com-20131030220738-zkf0kfa049iof2ld
2013-10-30 23:07:38 +01:00
Xavier Morel 94cbff3b7b [FIX] unset fields should render to empty, not the literal False
bzr revid: xmo@openerp.com-20131030154105-hqsalqnoa1nv1txy
2013-10-30 16:41:05 +01:00
Thibault Delavallée 97f164ba99 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20131028163325-2hpks3hp23zop40n
2013-10-28 17:33:25 +01:00
Antony Lesuisse a569093606 [IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
versioned history http.py can be found in lp:~openerp/openerp-web/trunk file addons/web/http.py

bzr revid: al@openerp.com-20131027171553-qe1ulbff0bphm15o
2013-10-27 18:15:53 +01:00
Launchpad Translations on behalf of openerp 2f3c517054 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026060436-zq7lmz0wyaf2or7c
bzr revid: launchpad_translations_on_behalf_of_openerp-20131022044413-i5f1hxr3y23buz38
bzr revid: launchpad_translations_on_behalf_of_openerp-20131023043450-hbi0snv6o0qpl0ne
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026054646-gklydoly8cq62jbp
bzr revid: launchpad_translations_on_behalf_of_openerp-20131027055002-ldfxtxmdm5wpc65b
2013-10-27 05:50:02 +00:00
Antony Lesuisse 422de0505c [REM] remove useless warning in user preference
bzr revid: al@openerp.com-20131025133531-6sbntv1visib5akt
2013-10-25 15:35:31 +02:00
Xavier Morel d06d6f7fd9 [FIX] m2o t-field rendering: use uid 1 for name_get
This is done automatically on a read(), but t-field uses a browse,
which does not do access-rights bypassing. We've already browsed the
root record so we should have the rights to the reading, and we just
want the textual representation for the child m2o.

bzr revid: xmo@openerp.com-20131025124720-i10eywz70o9c9dpc
2013-10-25 14:47:20 +02:00
Christophe Simonis d91819cb43 [MERGE] forward port of branch saas-2 up to revid 4965 chs@openerp.com-20131025103939-5gta1eifjhx1tsmi
bzr revid: chs@openerp.com-20131025104326-4k5hayl0bwdgt0mm
2013-10-25 12:43:26 +02:00
Christophe Simonis 2029aa28eb [MERGE] forward port of branch saas-1 up to revid 4914 chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
bzr revid: chs@openerp.com-20131025103939-5gta1eifjhx1tsmi
2013-10-25 12:39:39 +02:00
Christophe Simonis 82211b1ac2 [MERGE] forward port of branch 7.0 up to revid 5113 launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
bzr revid: chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
bzr revid: chs@openerp.com-20131031142125-7bm00z2jpccf3v6f
2013-10-31 15:21:25 +01:00
Launchpad Translations on behalf of openerp e3c98d3b5b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
bzr revid: launchpad_translations_on_behalf_of_openerp-20131101062658-f0i1x0ls32lokxmq
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102062309-1hvmk0fdeahhzjzk
bzr revid: launchpad_translations_on_behalf_of_openerp-20131103054310-9gbqxiwvi6a7rp1x
bzr revid: launchpad_translations_on_behalf_of_openerp-20131104060212-au7d8ww0ru2r10qf
2013-11-04 06:02:12 +00:00
Denis Ledoux 9fca9bbbd6 [FIX]crm_partner_assign: assign_geo_localize function was assigning the latitude/longitude of the first lead to all other leads passed
bzr revid: dle@openerp.com-20131031160215-qkm1fujob53umg3x
2013-10-31 17:02:15 +01:00
Denis Ledoux 959b0bc720 [FIX]base_import: context was not considered while importing. Thus, default value (for instance) was not set, and that leaded to inconsistencies (Like importing supplier invoices was actually creating customer invoices
lp bug: https://launchpad.net/bugs/1086424 fixed

bzr revid: dle@openerp.com-20131031135605-ffj3tid9prw2mv8z
2013-10-31 14:56:05 +01:00
Launchpad Translations on behalf of openerp 30e141708b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131031054753-45rivp2vcydq7cv3
2013-10-31 05:47:53 +00:00
Christophe Simonis f58e4f3f07 [FIX] board: filter available dashboards
lp bug: https://launchpad.net/bugs/1157896 fixed

bzr revid: chs@openerp.com-20131030195508-gw4prkz230m8toma
2013-10-30 20:55:08 +01:00
Christophe Simonis a237b0525d [FIX] web: allow grouping on fields not present in list view
[FIX] web,web_kanban: read_group: ensure read grouping fields

bzr revid: chs@openerp.com-20131030180242-rxxlawffv13ll5s1
2013-10-30 19:02:42 +01:00
Martin Trigaux e2d6786bc1 [FIX] ir_attachment: fix security issues on ir_attachment
check: verify the permissions even when no ids are passed (skipped permission checking for create)
create: verify has the write access on the related model (instead of create, was not checked anyway)
function field: execute the write in fnct_inv as superuser (was impossible to have creation without write access)

bzr revid: mat@openerp.com-20131030084408-t857gl7d4lkbrj5p
2013-10-30 09:44:08 +01:00
Launchpad Translations on behalf of openerp 40c309024c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026062529-74ir3upguunr9mw3
bzr revid: launchpad_translations_on_behalf_of_openerp-20131027061317-d9s440jzv1juvswi
bzr revid: launchpad_translations_on_behalf_of_openerp-20131028054233-15znliqv2eh2jq0i
bzr revid: launchpad_translations_on_behalf_of_openerp-20131029051429-rcytejyrg2s4t9db
bzr revid: launchpad_translations_on_behalf_of_openerp-20131030055438-gp0hyend0jooi941
2013-10-30 05:54:38 +00:00
Launchpad Translations on behalf of openerp 23e6b81833 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026062452-54qhvc3cru0x8e6h
bzr revid: launchpad_translations_on_behalf_of_openerp-20131029051406-apyhsdmupva2pdpz
bzr revid: launchpad_translations_on_behalf_of_openerp-20131030055412-kuwph2dx2jfeepwc
2013-10-30 05:54:12 +00:00
Martin Trigaux 15905e78c5 [FIX] ir_attachment: fix security issues on ir_attachment
check: verify the permissions even when no ids are passed (skipped permission checking for create)
create: verify has the write access on the related model (instead of create, was not checked anyway)
function field: execute the write in fnct_inv as superuser (was impossible to have creation without write access)

bzr revid: mat@openerp.com-20131029171420-x87wu7ph8ej7mtro
2013-10-29 18:14:20 +01:00
Martin Trigaux 9134b1b6d7 [FIX] purchase: post message on purchase order as admin if have no read access (would block validating invoice, opw #596294)
bzr revid: mat@openerp.com-20131029095012-4v4qyooblzgpkcz5
2013-10-29 10:50:12 +01:00
Martin Trigaux 7f9b84150f [FIX] purchase: apply same fix to invoice paid
bzr revid: mat@openerp.com-20131029093404-hw95lpcjsnok2wxa
2013-10-29 10:34:04 +01:00
Martin Trigaux 44d117398a [FIX] purchase: post message on purchase order as admin if have no read access (would block validating invoice, opw #596294)
bzr revid: mat@openerp.com-20131029092353-yg0wxl42352yu2rb
2013-10-29 10:23:53 +01:00
Denis Ledoux 71c11fdbdb [FIX]account_followup: revert commit 8795 (dle@openerp.com-20131028131851-q6x6rljvjs25vlng), because it requires some more access rights, a proper fix is needed for the group by
bzr revid: dle@openerp.com-20131028202715-uinjafcgpnw1nucx
2013-10-28 21:27:15 +01:00
Martin Trigaux d5211929b8 [MERGE] forward port of 7.0 until revision 9546 (launchpad_translations_on_behalf_of_openerp-20131028054233-15znliqv2eh2jq0i)
bzr revid: mat@openerp.com-20131028161227-rpv6d0unjmg12jgk
2013-10-28 17:12:27 +01:00
Martin Trigaux dcf15108f0 [FIX] list: force to recompute the selection as closing group reset items and would lead to an incorrect count of ids (eg: not hidding sidebar when no item is selected) (opw #599969)
bzr revid: mat@openerp.com-20131028144738-qpanf41yu1i92klh
2013-10-28 15:47:38 +01:00
Martin Trigaux 9edf16f669 [FIX] list: force recompute the selection as closing group reset properties (opw #599969)
bzr revid: mat@openerp.com-20131028141647-j6wkvl6plwblh077
2013-10-28 15:16:47 +01:00
Denis Ledoux bf29caa576 [FIX]account_followup: latest_followup_level_id was missing from tree view, in order to make work the group by Follow Up Level from searchview
bzr revid: dle@openerp.com-20131028131851-q6x6rljvjs25vlng
2013-10-28 14:18:51 +01:00
Launchpad Translations on behalf of openerp daea2f2e08 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026062534-cy8egi58c7w3cwns
bzr revid: launchpad_translations_on_behalf_of_openerp-20131027061322-op6b5ohzf6eiyiu2
2013-10-27 06:13:22 +00:00
Martin Trigaux 57a78f3f97 [FIX] res_config: don't jump to first root menu after applying changes, instead reload and stay on same configuration page
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279
2013-10-25 17:46:57 +02:00
xmo d524b95172 [FIX] list view: serialize concurrent calls when loading files and ensure consistency of variables (prevent selection of items in list view lost, opw #599969)
bzr revid: mat@openerp.com-20131025145519-jio03azp64ppi5ro
2013-10-25 16:55:19 +02:00
Olivier Dony 1632666101 [FIX] stock: move analysis report incorrectly merges multiple lines with same picking, product and qty
This error probably stems from the useless complexity of
the SQL view declaration and the double GROUP BY levels.

The patch rewrites the view query with a single GROUP BY
level and proper aggregation levels, but the core part
of the patch is to replace the outer `group by product_qty`
with a `sum(product_qty)`.

Some columns were also mentioned twice in the same GROUP
BY clause, for some reason.

bzr revid: odo@openerp.com-20131025103626-7l78kdjjr7c2wesb
2013-10-25 12:36:26 +02:00
Launchpad Translations on behalf of openerp 8bc457816f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131024052057-4ai7sltsmuoke8l5
bzr revid: launchpad_translations_on_behalf_of_openerp-20131025060100-ua2rf6g9urivk8bm
2013-10-25 06:01:00 +00:00
Christophe Simonis 2859897815 [FIX] allow falsy extra attributes on fields.
bzr revid: chs@openerp.com-20131024135448-e2bpgaqu7mvg1icn
2013-10-24 15:54:48 +02:00
Launchpad Translations on behalf of openerp 7345cfb697 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131019052730-g67chkz69pmoi5q4
bzr revid: launchpad_translations_on_behalf_of_openerp-20131020050443-pce4qrtn25h1qir6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131023052203-fvk0akb3avqxkqje
bzr revid: launchpad_translations_on_behalf_of_openerp-20131024052015-8kg0owfhye4ws3xw
bzr revid: launchpad_translations_on_behalf_of_openerp-20131025060039-0t8928ck7dgi8yv6
2013-10-25 06:00:39 +00:00
Xavier Morel a622a5ad55 [FIX] remove handling of parameters in ormcache clearing
It's completely broken in case of optional parameters
e.g. (ir.translation)._get_source, as a call with the optional
parameter won't be matched by a clear without, and the other way
around. This becomes even more problematic in the website branch as
_get_source now has *two* optional parameters (source and res_id).

After discussion with odo and discovery that in multiprocess only the
current node will use any granularity (other nodes not only clear all
of the current method cache, but all caches of all models), simplify
cache clearing, ignore parameters and just blow the current method's
cache entirely.

bzr revid: xmo@openerp.com-20131024132956-4tl3prum8za47igy
2013-10-24 15:29:56 +02:00
Thibault Delavallée 357676b6de [MERGE] [FIX] tools: mail: fixed shortening of html content.
Fixed length computation of text in html nodes: multiples successive whitespaces are considered as one whitespaces; better truncate position when adding a read more link; now always protect words (placed after the first word that exceeds the shorten position); pre nodes are preserved about whitespaces; when the read more link should go into a quote, it instead goes at the end of the first parent node not being quoted instead of at a wrong position.

Misc :
- removed an unnecessary loop by merging two root.iter() that do not interfere
- changed occurrences of getiterator to iter, because getiterator is deprecated
- nodes are cleaned after processing, removing all attributes used to tag nodes
- fixed a bug about cleaning span containing only whitespaces not always cleaned

Added tests for shorten position.

bzr revid: tde@openerp.com-20131024084411-pytwt9g1gdmoebzc
2013-10-24 10:44:11 +02:00