Merge lp:~openerp-dev/openobject-server/trunk-improve-configuration-warnings-tpa into lp:openobject-server
- trunk-improve-configuration-warnings-tpa
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-server/trunk-improve-configuration-warnings-tpa |
Merge into: | lp:openobject-server |
Diff against target: |
62 lines (+9/-7) 2 files modified
openerp/addons/base/res/res_config.py (+7/-5) openerp/addons/base/tests/test_res_config.py (+2/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/trunk-improve-configuration-warnings-tpa |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+186713@code.launchpad.net |
Commit message
Description of the change
[ADD] get_config_warning: check if menu is accessible to user then an only show "Go to the configuration panel" button to go to that menu.
- 4956. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4957. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4958. By Raphael Collet (OpenERP)
-
[FIX] expression: in nodes like (left, 'in', right), apply _symbol_set on all values in right
- 4959. By Martin Trigaux (OpenERP)
-
[ADD] report: support for dynamic fonts in report
search for TTF file on the system (in typical repositories)
add font field on the company and config wizard, the chosen value will replace the fontName value by the new one - 4960. By Thibault Delavallée (OpenERP)
-
[FORWARD] Forward port of saas-2 fixes until revision 4957 <email address hidden>
- 4961. By Antony Lesuisse (OpenERP)
-
[IMP] --auto-reload to enable code and xml auto reload, service cleanup.
Added an autoreload mecanism based on pyinotify that restart the server as soon
as a .py or .xml file change is detected, for xml updates the relevant -u are
automatically added to exec(2).pyinotify is linux specific and should be replaced by a cross plaform library
such as watchdog. Unfortunatly watchdog is not yet packaged in debian. We could
support both libraries, patches are welcome.Refactored the code in cli/* and service/*. The 3 running modes of openerp
(threaded, prefork, gevent) are now in openerp/service/ server. py, one class per
mode, and they share the same interface.Added a signal handler to increase or decrase the number of HTTP workers in
prefork mode (SIGTTIN, SIGTTOU). - 4962. By Antony Lesuisse (OpenERP)
-
[FIX] preliminary code for socket activation, to avoid connection refused during restart
- 4963. By Antony Lesuisse (OpenERP)
-
[IMP] add an easier to use XML-RPC faultCode compliant protocol
remove the /openerp/* routes, they were never used because the protocol was too
different from the historical /xmlrpc/ routes. Instead we introduce a
/xmlrpc/2/ route identical to /xmlrpc/ with the only difference that it returns
int faultCodes making it compliant with the XML-RPC specification. - 4964. By Antony Lesuisse (OpenERP)
-
[IMP] ir_actions cleanups.
Remove deprecated old style wizards.
Remove unsed get_model() function.
Move crons into Actions menuitem.
Move todos into Actions menuitem. - 4965. By Antony Lesuisse (OpenERP)
-
[REM] remove res.request, reorg technical menu.
- 4966. By Antony Lesuisse (OpenERP)
-
[REM] shortcuts, deprecated by bookmarks
- 4967. By Antony Lesuisse (OpenERP)
-
[IMP] cleanup in base/res and base/ir, removed unsed code, moved files.
- 4968. By Antony Lesuisse (OpenERP)
-
[REM] chorus on multiprocessing cron, it doesnt really helps
- 4969. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4970. By Antony Lesuisse (OpenERP)
-
[FIX] ensure the use the registry signaling for registries loaded with -d
- 4971. By Martin Trigaux (OpenERP)
-
[IMP] fonts: improvement of custom font intergration in rml reports
creation of model res.font
preload font list with basic pdf fonts for performances improvements
add 'reload fonts' on view to scan the filesystem
font selection is a simple on2many - 4972. By Antony Lesuisse (OpenERP)
-
[FIX] fcntl not needed on windows
- 4973. By Antony Lesuisse (OpenERP)
-
[FIX] debian deps, recommend antiword and python-gevent
- 4974. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4975. By Christophe Simonis (OpenERP)
-
[IMP] module loading: run post- migration scripts before running the tests. This allow migration of demo databases
- 4976. By Nicolas Vanhoren (OpenERP)
-
[MERGE] saas2
- 4977. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4978. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4965 <email address hidden>
- 4979. By Antony Lesuisse (OpenERP)
-
[REM] remove useless warning in user preference
- 4980. By Antony Lesuisse (OpenERP)
-
[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 - 4981. By Nicolas Vanhoren (OpenERP)
-
[IMP] Added doc
- 4982. By Quentin (OpenERP) <email address hidden>
-
[IMP] base, res_currency: changed the type of name of res_currency_rate from date to datetime for those who need to update the rate of a currency several times per day
- 4983. By Quentin (OpenERP) <email address hidden>
-
[FIX] osv.fields: don't raise an error for searching on dummy fields because it's their main reason to be
- 4984. By Quentin (OpenERP) <email address hidden>
-
[REV] base, res.currency: reverted revision 4982 because it was causing an error when a res.currency.rate was searched with a domain like [('name', '=', '30-20-2013')]. This patch will be back with a graceful solution to fix the error
- 4985. By Christophe Simonis (OpenERP)
-
[FIX] http: bind RouteMap using environ to allow correct redirections
(manual forward port of revid 3860 <email address hidden> from web branch) - 4986. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4968 <email address hidden>
- 4987. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4988. By Quentin (OpenERP) <email address hidden>
-
[FIX] expression.py: when searching on a datetime field with an argument formated as a date, conversion should happen _also_ for the '=' operator. This omission was causing an infinite loop beacuse we were pushing the exact same leaf on the stack without any modification
- 4989. By Quentin (OpenERP) <email address hidden>
-
[IMP] base, currency: second attempt to include this patch (previously added in revision 4982 then reverted in revision 4984 because of a bug in the server that was making an infinite loop -which has been fixed in previous revision-). Updated the type of name field of res.currency.rate in <datetime> instead of <date> for those who need to update the rate of currencies several times per day
- 4990. By Stephane Wirtel (OpenERP)
-
[FIX] test_mail: Rewrite the XSS test
- 4991. By Antony Lesuisse (OpenERP)
-
[IMP] http move db dispatching to AbstractModel ir.http
Allow module to override the http dispatching process:
- The default implementation uses werkzeug.routing but any other method could
be used, it'a also possible to pre/postprocess (i.e. url aliases)
- Authentication (auth param on route) is plugggable by defining now
_auth_method_ <methodname>
- Error handler are overridable, any module can define a new exception and
handle it by orverriding the _handle_<error_ code> method.
- Add model converters for routes, to directly get the browse record example
@route(['/job/ detail/ <model( "hr.job" ):job>' ], type='http', auth="user") This is done by splitting dispatching, when the db is unknown low level http.py
dispatching is used, it's only used by a few controller in base and web. When
the db is known, ir_http is used because it's a regular Model it is fully
overridable by openerp modules. - 4992. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4993. By Xavier (Open ERP)
-
[IMP] new routing thing
* fix nameerror on SessionExpired exception not being imported
* remove pointless RequestUID instantiation by single placeholder object
- may be replaceable with a LocalProxy or something along those lines?
* rename default/nodb routing map
* make better use of werkzeug API
* move lazy routing_map instantiation to property in ir_http.find_handler
- do we have some sort of lazy_property? - 4994. By Xavier (Open ERP)
-
[FIX] bunch of broken stuff over http requests in new routing thing
* make ModelConverter use its regex for data extraction so
replacements can just fixup the request and don't have to mess with
_uid* replace routing_map property by method, for unknown reasons the
property does not work at least overridden (it's not found) and I
don't care enough to wonder why* arguments result from MapAdapter.match() is a mapping, not a
sequence. Iterate through values()/itervalues( ) otherwise we'll
never get a browse_record to do the uid substitution on, only
strings (params names)* inject arguments from URL map/match into the function before
executing it, this was apparently lost during the transition* reintroduce get_db_router for third-party code needing to generate
URLs - 4995. By Martin Trigaux (OpenERP)
-
[FIX] company: add missing on_change for font selection
- 4996. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4997. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 4998. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4984 <email address hidden>
- 4999. By Christophe Simonis (OpenERP)
-
[IMP] dumpstack dumps greenlets when running in evented mode.
(forward port lost during previous commit) - 5000. By Christophe Simonis (OpenERP)
-
[MERGE] manual forward port of changes made in http dispatching in saas-2 branch since last web revid 3865 <email address hidden>
- 5001. By Christophe Simonis (OpenERP)
-
[FIX] html_sanitize does not raise exception for empty string anymore. correct related test
- 5002. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4987 <email address hidden>
- 5003. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4989 <email address hidden>
- 5004. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4990 <email address hidden>
- 5005. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 4992 <email address hidden>
- 5006. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5007. By Antony Lesuisse (OpenERP)
-
[IMP] http improvement
- context manager request object (removes some ugly hacks)
- improve http error handling
- add lazyresponses - 5008. By Antony Lesuisse (OpenERP)
-
[FIX] http response handling inside request context
- 5009. By Christophe Simonis (OpenERP)
-
[FIX] ir.http: catch all authentification errors
- 5010. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5011. By Martin Trigaux (OpenERP)
-
[MERGE] [FIX] res_font: make it works in multiworker environment
res_font model gains family, path and mode field
Basic fonts embedded in pdf (Helvetica, Times and Courier) are data
Fix reports using font names to be valid (eg: DejaVu Sans Bold -> DejaVuSans-Bold)
default_get of res_company does not scan the filesystem anymore
family field is new name_get font for res_font (more user friendly)
Domain on displayed font to only 'normal ones' (not bold or italic)
Handle fonts in 'book' mode as normal in setTTFontMapping
Relax constraint on res_font to unique family and name ('name' was actually family before)
font_scan is called on 'reload fonts' action button and for each report rendering
font_scan is lazy when loaded from report and scanning the filesystem only if no font recorded in filesystem
'/dev/null' in font path is used to add fonts in the list but not loaded by reportlab
Scanning the filesystem triggers clear_caches
clear_cache resets the list of found fonts to empty list to make font_scan call to reload the full list (when redering a report on any worker, will always get the updated font list after a scan)
Add access rights for fonts (read everybody, create admin, call font_scan as superuser in report rendering)
Remove font hack with BaseCustomTTFonts, rely fully on the system fonts
Use glob instead of listdir (needed for path like '/usr/share/fonts/TTF/ *')
Make warning message from reportlab more self-explaining.Also make the runbot green (which is nice)
- 5012. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5013. By Thibault Delavallée (OpenERP)
-
[FIX] http: correctly handle the rollback when an exception is raised. Indeed dispathc serializes the exception, leading to the error being catched before we check and rollback the transaction. This commit fixes this.
- 5014. By Xavier (Open ERP)
-
[ADD] tentative tests for application of view inheritance stuff
- 5015. By Martin Trigaux (OpenERP)
-
[MERGE] forward port of latest saas-2 until rev 4996 <email address hidden>
- 5016. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5017. By Géry Debongnie
-
[IMP] changes the rng description of the xml grammar to add a 'stacked' attribute to the tag 'graph'
- 5018. By Martin Trigaux (OpenERP)
-
[FIX] ir_translation: rename method load to load_module_terms to avoid name clash with load call from base_import
- 5019. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5020. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5021. By Stephane Wirtel (OpenERP)
-
[REF] Use the contextlib.closing function instead of a couple of try/catch for
the release of the database cursor. - 5022. By Stephane Wirtel (OpenERP)
-
[REF] Merge a refactoring of the workflow (lp:~openerp-dev/openobject-server/trunk-refactor-workflow-stw)
- 5023. By Stephane Wirtel (OpenERP)
-
[FIX] On OSX, the system has a lot of Bitmap fonts, and in this case, Reportlab
can not load the 'head' table from the structure of the TTF file. There is no
good way to check if a TTF file is an old style or new style. - 5024. By Stephane Wirtel (OpenERP)
-
[FIX] Add the default shell
- 5025. By Stephane Wirtel (OpenERP)
-
[MERGE] Extract the base64 encoded images from the xml files lp:~openerp-dev/openobject-server/trunk-extracted_img-stw
- 5026. By van der Essen Frédéric (OpenERP)
-
[FIX] adding new python dependencies brought by the hw_escpos module to the install script
- 5027. By Stephane Wirtel (OpenERP)
-
[MERGE] orm: Don't call the sequence when we create a new record. Use the
returning keyword of the INSERT statement. - 5028. By Xavier (Open ERP)
-
[IMP] replace PIL dependency by pillow
pillow is a better-maintained fork, and installing it from source
tends to succeed more easily than PIL's - 5029. By jke-openerp
-
[MERGE] Merge with trunk-cal-jke
Add options allowed to be used in calendar's view.
> Some needs to be checked by orm to know if the field is well a valid parameter and well passing
> Some needs only to be checked at launch (only added RNG)
Imp to not send email from demo data. (Before, we only exclude the mail from test data)
> don't send mail to <email address hidden> or <email address hidden>
> Done with ODO - 5030. By Christophe Simonis (OpenERP)
-
[FIX] update MANIFEST.in to include openerp-gevent and oe binaries
- 5031. By Christophe Simonis (OpenERP)
-
[FIX] correct RPM creation: quote files with a space
- 5032. By Christophe Simonis (OpenERP)
-
[FIX] http: correct jsonp 2pass
- 5033. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 5002 <email address hidden>
- 5034. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5035. By Martin Trigaux (OpenERP)
-
[IMP] search_read: avoid calling read if search only on id column (security rules already triggered with search)
- 5036. By Antony Lesuisse (OpenERP)
-
[FIX] multiprocess mode, empty the cursor pool before forking
- 5037. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5038. By Géry Debongnie
-
[IMP] server changes required for new graph view (mainly read_group method in orm.py)
- 5039. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 5005 <email address hidden>
- 5040. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 5006 <email address hidden>
- 5041. By Antony Lesuisse (OpenERP)
-
[IMP] http allow auth=none without db outside of web
- 5042. By Fabien Meghazi (OpenERP)
-
[ADD] Cross-Origin Resource Sharing support as http.route() argument
- 5043. By Fabien Meghazi (OpenERP)
-
[IMP] better handling of methods for CORS
- 5044. By Géry Debongnie
-
[MERGE] merge trunk-new-
graphview- ged into trunk. This changes read_group to make sure it uses the correct timezone (orm.py) - 5045. By Fabien Meghazi (OpenERP)
-
[ADD] Support cors for pos demo
- 5046. By Géry Debongnie
-
[MERGE] merge formatting fix from trunk-new-
graphview- ged (date formatting) - 5047. By Antony Lesuisse (OpenERP)
-
[MERGE] trunk-website-al
- 5048. By Antony Lesuisse (OpenERP)
-
[REV] never change exceptions types
- 5049. By Fabien Meghazi (OpenERP)
-
[FIX] CORS routing should use new routing api
- 5050. By Fabien Meghazi (OpenERP)
-
[REV] Bring back QWebException, rename QWebException#inner to 'cause'
- 5051. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5052. By Thibault Delavallée (OpenERP)
-
[MERGE] [IMP] ir_actions: server action: the context used to evaluate python code (condition, code server action) is prepared in its own method. This eases the inheritance process and allow s other modules to add new items in the evaluation context. An example of use is to add the request object in the website module, allowing some server action to be accessible through the website front-end.
- 5053. By van der Essen Frédéric (OpenERP)
-
[IMP] cors rpc: enable preflight request caching, vastly improves rpc performance
- 5054. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5060 <email address hidden>
- 5055. By Antony Lesuisse (OpenERP)
-
[MERGE] trunk-test-al easier http testing
- 5056. By Antony Lesuisse (OpenERP)
-
[FIX] restore testing after patching runbot
- 5057. By Antony Lesuisse (OpenERP)
-
[FIX] re-enable test func and qweb
- 5058. By Antony Lesuisse (OpenERP)
-
[IMP] move test cases to tests.py remove deprecated wsgi import
- 5059. By Antony Lesuisse (OpenERP)
-
[IMP] phantomtest helper
- 5060. By Antony Lesuisse (OpenERP)
-
[IMP] rename into test_ui like addons
- 5061. By Antony Lesuisse (OpenERP)
-
[IMP] test_ui shorter code
- 5062. By Antony Lesuisse (OpenERP)
-
[IMP] phantomjs testing add an easy phantom_js helper
self.phantom_
js(<page_ to_load> , <code_to_run>, <global_ object_ to_wait> , **options) example:
self.phantom_
js("/", "openerp. module. mytest( )", "openerp. module. mytest" ); console.log('ok') or console.
log('error' ) should be used to signal success or
failure. Other console.log's will be passed to the test logger. - 5063. By Fabien Meghazi (OpenERP)
-
[MERGE] saas-3
- 5064. By Christophe Matthieu (OpenERP)
-
[IMP] test phantomtest: inject files with testing if a variable is already setted
- 5065. By Christophe Simonis (OpenERP)
-
[FIX] trunk is 8.0 alpha, not saas-3
- 5066. By Martin Trigaux (OpenERP)
-
[FIX] module: fix imports broken at revision 5055
get_module_resource method is required by function fields of ir.module.module - 5067. By Raphael Collet (OpenERP)
-
[MERGE] from saas-3
- 5068. By Christophe Simonis (OpenERP)
-
[IMP] oe initialize must take the port as parameter (for http tests)
- 5069. By Christophe Simonis (OpenERP)
-
[FIX] oe initialize start http server to allow http tests to pass
- 5070. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5071. By Antony Lesuisse (OpenERP)
-
[FIX] debian deps
- 5072. By Xavier (Open ERP)
-
[IMP] small cleanups to module loading stuff
- 5073. By Xavier (Open ERP)
-
[FIX] missed case where sys.modules values can be None
- 5074. By Antony Lesuisse (OpenERP)
-
[FIX] tests HTTPCase if phantomjs is not installed
- 5075. By Antony Lesuisse (OpenERP)
-
[IMP] phantomjs testing
- avoid dbmanager by presetting db in the test session
- correctly handle login option
- serialize test cursor access - 5076. By Antony Lesuisse (OpenERP)
-
[FIX] tests HttpCase phantomjs conditional injection inject=
[(need, file)] - 5077. By Antony Lesuisse (OpenERP)
-
[FIX] temp fix for runbot-job
- 5078. By Antony Lesuisse (OpenERP)
-
[FIX] ir.http testing generate a router including the current module
this fix is a dirty hack, the proper fix could be a new 'installing' state in
modules, or an improved registry object. - 5079. By Xavier (Open ERP)
-
[FIX] only run test modules called test_*, similar to normal autodiscovery
- 5080. By openerp-sle <email address hidden>
-
[MERGE] Renamed 'paper_format' field on the company to 'rml_paper_format' and reorder all report's configuration into one tab
- 5081. By Xavier (Open ERP)
-
[IMP] unwrap tests suites during module loading, prepare for storing/filtering attributes
- 5082. By Xavier (Open ERP)
-
[ADD] hooks to enable/disable tests running during install
also add flag for post_install run, but not used yet
- 5083. By Xavier (Open ERP)
-
[FIX] run_unit_tests lying about its return value: it only ever returns a bool, never None
- 5084. By Xavier (Open ERP)
-
[IMP] slightly improve error message at the end of a module's failed tests
- 5085. By Xavier (Open ERP)
-
[IMP] phantomjs runner
* use Skip exception to skip tests in case phantomjs binary not found
* remove spurious logging, move some to debug when debatable
* use testing assertions for correct reporting
* allow failure message
* use mutable buffer to accumulate stdout data - 5086. By Xavier (Open ERP)
-
[FIX] possibility of select being interrupted, just restart the call
uses EnvironmentError because not sure if socket.error or os.error
- 5087. By Xavier (Open ERP)
-
[IMP] style
use break instead of return so cleanup can eventually be put after loop if necessary (?)
- 5088. By Xavier (Open ERP)
-
[FIX] correctly display JS stack frames in phantomjs runner
altered reporting to handle and deserialize JSON if JSON-deserializ
able. Can't
just send multiple lines as driver currently does not handle multiple lines of
message... Yeah turns out having a JSON-based protocol between phantomjs and
the python runner allowed multiple lines in messages, who'd have thought eh? - 5089. By Xavier (Open ERP)
-
[FIX] actually retry select on EINTR
Turns out select has its own select.error which does *not* subclass
EnvironmentError (or OSError or IOError) and does *not* have a .errno
attribute. So use the correct exception, might just work better than using
a completely different one with no relation. - 5090. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-2 up to revid 5014 <email address hidden>
- 5091. By Christophe Simonis (OpenERP)
-
[FIX] openerp/
addons/ base/ir/ ir_actions. py: correct SyntaxError introduced in last commit - 5092. By Thibault Delavallée (OpenERP)
-
[MERGE] [IMP] ir_actions: allow using workflows in server actions.
- 5093. By Xavier (Open ERP)
-
[IMP] filter out phantomjs warning on OSX
- 5094. By Christophe Simonis (OpenERP)
-
[FIX] httpd thread must be a daemon threaded
- 5095. By Christophe Simonis (OpenERP)
-
[FIX] return code is non-zero if any preloaded database failed to load
- 5096. By Christophe Simonis (OpenERP)
-
[FIX] correct run of test-file via command line
- 5097. By Christophe Simonis (OpenERP)
-
[FIX] correct signal handler on nt
- 5098. By Christophe Simonis (OpenERP)
-
[IMP] openerp/
service/ server. py: lint file - 5099. By Christophe Simonis (OpenERP)
-
[FIX] damn! correct import
- 5100. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5101. By Fabien Meghazi (OpenERP)
-
[FIX] website's translation problems on multiple inheritance
- 5102. By Fabien Meghazi (OpenERP)
-
[IMP] Improvement/changes to the http request/response API.
- Added http.Response object
- @http.route decorator wraps methods in order to convert returned value to Response object
- http.Request.func* variables moved to http.EndPoint class
- moved _first_arg_is_req backward compatibility feature in EndPoint class
- CORS support moved to new http.Request object
- Added a #render() helper on request object as a companion of #make_response() that will return a lazy qweb rendering response
- Extra check in routing_map() in order to forbid the chabge of request type in @http.route arguments inheritance
- Fix crash happening when no Host header is present in the request - 5103. By Antony Lesuisse (OpenERP)
-
[MERGE] data-dir, a single directory for file system assets
use a single directory in the filesystem to store
- database filestore
- http sessions
- downloaded modulesBy default the following platform specific location are used
Mac OS X: ~/Library/
Application Support/OpenERP
Unix: ~/.local/share/OpenERP # or in $XDG_DATA_HOME, if defined
Win 7 (not roaming): C:\Users\<username> \AppData\ Local\OpenERP\ OpenERP
Win 7 (roaming): C:\Users\<username> \AppData\ Roaming\ OpenERP\ OpenERP
Win XP (not roaming): C:\Documents and Settings\<username> \Application Data\OpenERP\ OpenERP
Win XP (roaming): C:\Documents and Settings\<username> \Local Settings\ Application Data\OpenERP\ OpenERP But this location can manually be set manually using --data-dir
- 5104. By Antony Lesuisse (OpenERP)
-
[MERGE] cron race condition leading to unneeded executions, courtesy of acsone
When mulitple cron workers get their list of jobs to process at the same time,
some jobs might be executed multiple times. We fix this by keeping the listing
filter when taking the lock. - 5105. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5106. By Olivier Dony (Odoo)
-
[FIX] server.stop: avoid traceback during shutdown if HTTP service never started (e.g. because address was already in use)
- 5107. By Christophe Simonis (OpenERP)
-
[FIX] do not expose posix only config options on windows
- 5108. By Christophe Simonis (OpenERP)
-
[FIX] setup.py: pywebdav does not expose DAV import anymore
- 5109. By Antony Lesuisse (OpenERP)
-
[FIX] --test-file regression introduced by chs
- 5110. By Antony Lesuisse (OpenERP)
-
[IMP] test add an url_open helper to http case
- 5111. By Antony Lesuisse (OpenERP)
-
[IMP] ir.actions.
report. xml improve view, move rml specific fiels in a tab - 5112. By Antony Lesuisse (OpenERP)
-
[FIX] ir.actions.
report. xml keep report_type pdf until full report conversion is completed - 5113. By Antony Lesuisse (OpenERP)
-
[IMP] ir.actions.
report. xml more view cleanup - 5114. By Antony Lesuisse (OpenERP)
-
[FIX] wsgi deployement with openerp-wsgi.py
- 5115. By Xavier (Open ERP)
-
[FIX] nonsensical import?
- 5116. By Xavier (Open ERP)
-
[IMP] readability of phantomjs timeouts
- 5117. By Xavier (Open ERP)
-
[IMP] phantomjs waitloop
* simplify waitFor itself
* log a "waiting for" message if the expression evaluates but is *false* - 5118. By Xavier (Open ERP)
-
[IMP] phantomjs driver cleanups
- 5119. By Fabien Meghazi (OpenERP)
-
[IMP] ir.http: provide current rule to argument postprocessing
- 5120. By Antony Lesuisse (OpenERP)
-
[REV] reverting <email address hidden>
This api change breaks jsfile tests (example test_ui_load.js). The api is broken
but the proper fix would be to avoid accessing phantom.args from PhantomTest - 5121. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5088 <email address hidden>
- 5122. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5123. By Antony Lesuisse (OpenERP)
-
[MERGE] db dump/restore zip-based format.
The new format uses plain text sql and includes the filestore.
The old pg_dump format is still supported for db restore. - 5124. By Antony Lesuisse (OpenERP)
-
[REM] http useless controller
- 5125. By Antony Lesuisse (OpenERP)
-
[IMP] phantom tests
- phantomjs more verbose
- revert to dumber console.log relay, dont try to be smart, just display it
- json is only optionally parsed for errors stack dumps - 5126. By Antony Lesuisse (OpenERP)
-
[IMP] tests log phantom to info the default loglevel of runbot
- 5127. By Antony Lesuisse (OpenERP)
-
[FIX] tests typo in js tests result parsing
- 5128. By Antony Lesuisse (OpenERP)
-
[FIX] no comments
- 5129. By Antony Lesuisse (OpenERP)
-
[IMP] tests prepend modules names when logging
- 5130. By Antony Lesuisse (OpenERP)
-
[FIX] race condition for test cursors
If a test ends before handling all its http queries (serialised by a Rlock),
threads created for unfufilled queries may hang because the interrupted thread
might not have unlocked its cursor as it might have dissapeared from
HTTP_SESSION before request release_test_cursor. We now use the cursor itself
instead of HTTP_SESSION. - 5131. By Xavier (Open ERP)
-
[IMP] skip injection of data-oe-* attributes outside of editable mode
- 5132. By Antony Lesuisse (OpenERP)
-
[FIX] tests dont generate traceback on aborted test requests
- 5133. By Antony Lesuisse (OpenERP)
-
[FIX] tests dont log traceback on aborted request while testing
- 5134. By Fabien Meghazi (OpenERP)
-
[FIX] Force routing map to be rebuilt between each module test suite
- 5135. By Xavier (Open ERP)
-
[FIX] qweb tests re. inherit_branding enabling/disabling injection of data attributes
- 5136. By Christophe Simonis (OpenERP)
-
[FIX] test_converter: force inherit_branding by passing the right context
- 5137. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5093 <email address hidden>
- 5138. By Antony Lesuisse (OpenERP)
-
[MERGE] ir_logging postgresql log handler --log-db=<dbname>
- 5139. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5140. By jke-openerp
-
[MERGE] Merge branch lp:~numerigraphe/openobject-server/7.0-translation-order-933496-numerigraphe
- 5141. By Christophe Simonis (OpenERP)
-
[IMP] tools.exec_
pg_command: hide command output - 5142. By Christophe Simonis (OpenERP)
-
[FIX] duplicate/
rename/ drop database: handle filestore - 5143. By Christophe Simonis (OpenERP)
-
[FIX] http: register the wsgi handler directly
- 5144. By Christophe Simonis (OpenERP)
-
[ADD] openerp.
tools.func. lazy_property( ): Decorator for a lazy property of an object, i.e., an object attribute
that is determined by the result of a method call evaluated once. To
reevaluate the property, simply delete the attribute on the object, and
get it again. - 5145. By Christophe Simonis (OpenERP)
-
[FIX] http: nodb_routing_map become a lazy property. load_addons() is also lazy called
- 5146. By Christophe Simonis (OpenERP)
-
[FIX] http: when generating static routes, only wrap dispatcher only if there is any new static directory found
- 5147. By sle-openerp
-
[MERGE][IMP] view improvement on ir.actions.
report. xml and moved the qweb contact widget from website to base - 5148. By Christophe Matthieu (OpenERP)
-
[IMP] post install for test running; fix phantomjs and run test
- 5149. By Christophe Simonis (OpenERP)
-
[FIX] init logger earlier, right after config loading
- 5150. By Antony Lesuisse (OpenERP)
-
[IMP] wsgi and http cleanups, static http is now handled in http.py
- 5151. By jke-openerp
-
[FIX] Use all users (disabled also) in execute of res_config for implies group. Else, public user or old user don't get the right permission/group.
- 5152. By Christophe Matthieu (OpenERP)
-
[IMP] res.country: add flag image field in res.country with flag data
- 5153. By Fabien Meghazi (OpenERP)
-
[ADD] python requests library dependency
- 5154. By Fabien Meghazi (OpenERP)
-
[MERGE] remote module import
- 5155. By Fabien (Open ERP)
-
[IMP] reduced image size
- 5156. By Fabien (Open ERP)
-
[IMP] reduced flag size
- 5157. By Fabien (Open ERP)
-
[IMP] reduced size flags
- 5158. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5159. By Martin Trigaux (OpenERP)
-
[ADD] orm: Allow to export data in raw format instead of all string.
This is useful for exports in MS Excel format which needs raw data to handle correctly the number and dates.
- 5160. By Christophe Simonis (OpenERP)
-
[FIX] setup.py: correct included packages in py2exe options
- 5161. By Antony Lesuisse (OpenERP)
-
[FIX] increase js test timeout to 60
when runbot is overloaded, test speed can be slow, 2s per HTTP request - 5162. By Antony Lesuisse (OpenERP)
-
[FIX] temporary fix for concurrent commit during test until we improve test
cursor to emulate multiple cursors - 5163. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5112 <email address hidden>
- 5164. By Christophe Simonis (OpenERP)
-
[FIX] ir_actions: add missing comma
- 5165. By Thibault Delavallée (OpenERP)
-
[FIX] res_partner demo data: fixed email address, using a symbol not valid for
an email address. - 5166. By Géry Debongnie
-
[MERGE] complete refactoring of read_group method in orm.py. In bonus, it now can work in 'lazy' or 'eager' mode (lazy by default), which is an important feature for the graph view.
- 5167. By sle-openerp
-
[MERGE] Adapted tests_reports and ir_actions to run the existing yml tests with QWeb reports; Added a ir.qweb.widget model able to format data from a t-esc; Added a monetary qweb widget
- 5168. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5169. By Raphael Collet (OpenERP)
-
[MERGE] test_cursor: implement a cursor mockup that never commits to database, and use it for http tests
- 5170. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5115 <email address hidden>
- 5171. By Raphael Collet (OpenERP)
-
[FIX] sql_db: forgotten attribute renaming _pool -> __pool
- 5172. By Géry Debongnie
-
[MERGE] fix a stupid error with the computation of domains in read_group: it was wrong when the interval is day (orm.py)
- 5173. By Christophe Simonis (OpenERP)
-
[FIX] test: HttpCase wait http requests to finish
- 5174. By Martin Trigaux (OpenERP)
-
[FIX] read_group: avoid shared context and initialise if none
- 5175. By Richard Mathot (Odoo, formerly OpenERP)
-
[MERGE][REM] Remove unused 'Survey' category for modules ('survey' will be now listed under 'Marketing')
- 5176. By Antony Lesuisse (OpenERP)
-
[FIX] instrumentation to debug a deadlock probably due to a race condition in
the test cursor - 5177. By Thibault Delavallée (OpenERP)
-
[IMP] [FIX] ir_qweb: fixed a call to a parameter considered as being
a dict but that could be None; added management of country flag on the
contact widget. - 5178. By Antony Lesuisse (OpenERP)
-
[FIX] logging, pg logging use thread db
- 5179. By Josse Colpaert (OpenERP)
-
[IMP] context_today should apply to function fields also in order to show them in qweb reports
- 5180. By Raphael Collet (OpenERP)
-
[IMP] test cursor: code cleanup to make it more robust to concurrent accesses
- 5181. By Richard Mathot (Odoo, formerly OpenERP)
-
[MERGE][IMP] Terminology uniformisation
- 5182. By Quentin (OpenERP) <email address hidden>
-
[IMP] fields.date: added date_to_datetime function
- 5183. By Christophe Simonis (OpenERP)
-
[IMP] ir.attachment: add method to force all attachments to use selected storage
- 5184. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-3 up to revid 5116 <email address hidden>
- 5185. By Christophe Simonis (OpenERP)
-
[IMP] orm: postprocess function field values in batch
- 5186. By jke-openerp
-
[MERGE] qweb-m2o-view - Allow to use many2one for qweb template (work also with view_id)
- 5187. By Denis Ledoux (OpenERP)
-
[ADD] osv: add get_formview_action and get_formview_id methods
return an action to open the document. This method is meant to be
overridden in addons that want to give specific view ids for example - 5188. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5189. By Quentin (OpenERP) <email address hidden>
-
[FIX] fields.date's date_to_datime function fixed
- 5190. By Darshan Kalola(OpenERP)
-
[MERGE] [IMP] ir_ui_view: kanban view: also add action_enabled information
about the columns in kanban view. This allows to display the 'create a new column', as well as 'edit' or 'delete'
options on column in kanban view, based on the users' access rights. - 5191. By Darshan Kalola(OpenERP)
-
[MERGE] [IMP] res_partner: correctly take the 'use parent address'
into account in the onchange. Slightly updated the view that was weird with this parameter. - 5192. By Rakesh Sindhav(OpenERP)
-
[MERGE][IMP] res_bank & res_county: missing labels in form views
- 5193. By Christophe Simonis (OpenERP)
-
[MERGE] forward port of branch saas-4 up to revid 5196 <email address hidden>
- 5194. By Richard Mathot (Odoo, formerly OpenERP)
-
[MERGE][IMP] More explicit error message in res_currency
- 5195. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5196. By Christophe Simonis (OpenERP)
-
[FIX] release.py: correct version number (wrongly forward-ported from saas-4)
- 5197. By Fabien Meghazi (OpenERP)
-
[FIX] routing_type meta info was populated too late in routing_map()
Thus not allowing usage in tests
- 5198. By Randhir Mayatra (OpenERP)
-
[MERGE][REM] Configurable menu action for users -- was broken (server part)
This commit requires r3995 of web branch
- 5199. By Fabien Meghazi (OpenERP)
-
[MERGE] Web assets moved from manifests to ir.ui.view bundles
- 5200. By Antony Lesuisse (OpenERP)
-
[MERGE] forward port of branch saas-4 up to <email address hidden>
- 5201. By Antony Lesuisse (OpenERP)
-
[IMP] cleanups, move tests, remove deprecated model instantiation
- 5202. By Antony Lesuisse (OpenERP)
-
[IMP] ir_qweb improve css minify
- 5203. By Antony Lesuisse (OpenERP)
-
[FIX] ir_qweb set js assets to async
- 5204. By Antony Lesuisse (OpenERP)
-
[FIX] ir_qweb revert async script attribute
- 5205. By Fabien Meghazi (OpenERP)
-
[TRY] defer
- 5206. By Fabien Meghazi (OpenERP)
-
[REV] defer
- 5207. By Fabien Meghazi (OpenERP)
-
[ADD] Support for ir.attachments in assets bundles
- 5208. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5209. By Fabien Meghazi (OpenERP)
-
[ADD] modules global rendering variable
This is temporary
- 5210. By Fabien Meghazi (OpenERP)
-
[FIX] runbot color
- 5211. By Olivier Dony (Odoo)
-
[MERGE] I18N: make fr_CA one of the default installation languages, courtesy of Maxime Chambreuil (SavoirFaireLinux)
- 5212. By Fabien Meghazi (OpenERP)
-
[FIX] configuration file dbfilter's option has no effect
- 5213. By Fabien Meghazi (OpenERP)
-
[IMP] monodb selects first database if only one match. Even if db-filter was not provided
- 5214. By Fabien Meghazi (OpenERP)
-
[IMP] assets bundle: allow to filter on type of assets
- 5215. By Sunil Sharma(OpenERP)
-
[Merge]: merged with trunk
- 5216. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-server
- 5217. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-server
Unmerged revisions
- 5217. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-server
- 5216. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-server
- 5215. By Sunil Sharma(OpenERP)
-
[Merge]: merged with trunk
Preview Diff
1 | === modified file 'openerp/addons/base/res/res_config.py' |
2 | --- openerp/addons/base/res/res_config.py 2014-03-26 14:05:09 +0000 |
3 | +++ openerp/addons/base/res/res_config.py 2014-05-12 04:47:47 +0000 |
4 | @@ -595,11 +595,13 @@ |
5 | - t[0]: string: full path to the menuitem (e.g.: "Settings/Configuration/Sales") |
6 | - t[1]: int or long: id of the menuitem's action |
7 | """ |
8 | + menu_obj = self.pool['ir.ui.menu'] |
9 | module_name, menu_xml_id = menu_xml_id.split('.') |
10 | dummy, menu_id = self.pool['ir.model.data'].get_object_reference(cr, uid, module_name, menu_xml_id) |
11 | - ir_ui_menu = self.pool['ir.ui.menu'].browse(cr, uid, menu_id, context=context) |
12 | + ir_ui_menu = menu_obj.browse(cr, uid, menu_id, context=context) |
13 | + action_id = ir_ui_menu.action.id if menu_obj._filter_visible_menus(cr, uid, [menu_id], context=context) else False |
14 | |
15 | - return (ir_ui_menu.complete_name, ir_ui_menu.action.id) |
16 | + return (ir_ui_menu.complete_name, action_id) |
17 | |
18 | def get_option_name(self, cr, uid, full_field_name, context=None): |
19 | """ |
20 | @@ -613,7 +615,7 @@ |
21 | |
22 | return self.pool[model_name].fields_get(cr, uid, allfields=[field_name], context=context)[field_name]['string'] |
23 | |
24 | - def get_config_warning(self, cr, msg, context=None): |
25 | + def get_config_warning(self, cr, uid, msg, context=None): |
26 | """ |
27 | Helper: return a Warning exception with the given message where the %(field:xxx)s |
28 | and/or %(menu:yyy)s are replaced by the human readable field's name and/or menuitem's |
29 | @@ -656,9 +658,9 @@ |
30 | for item in references: |
31 | ref_type, ref = item.split(':') |
32 | if ref_type == 'menu': |
33 | - values[item], action_id = res_config_obj.get_option_path(cr, SUPERUSER_ID, ref, context=context) |
34 | + values[item], action_id = res_config_obj.get_option_path(cr, uid, ref, context=context) |
35 | elif ref_type == 'field': |
36 | - values[item] = res_config_obj.get_option_name(cr, SUPERUSER_ID, ref, context=context) |
37 | + values[item] = res_config_obj.get_option_name(cr, uid, ref, context=context) |
38 | |
39 | # 3/ substitute and return the result |
40 | if (action_id): |
41 | |
42 | === modified file 'openerp/addons/base/tests/test_res_config.py' |
43 | --- openerp/addons/base/tests/test_res_config.py 2013-05-08 15:32:07 +0000 |
44 | +++ openerp/addons/base/tests/test_res_config.py 2014-05-12 04:47:47 +0000 |
45 | @@ -60,7 +60,7 @@ |
46 | |
47 | def test_20_get_config_warning(self): |
48 | """ The get_config_warning() method should return a RedirectWarning """ |
49 | - res = self.res_config.get_config_warning(self.cr, self.error_msg, context=None) |
50 | + res = self.res_config.get_config_warning(self.cr, self.uid, self.error_msg, context=None) |
51 | |
52 | # Check type |
53 | self.assertIsInstance(res, openerp.exceptions.RedirectWarning) |
54 | @@ -71,7 +71,7 @@ |
55 | |
56 | def test_30_get_config_warning_wo_menu(self): |
57 | """ The get_config_warning() method should return a Warning exception """ |
58 | - res = self.res_config.get_config_warning(self.cr, self.error_msg_wo_menu, context=None) |
59 | + res = self.res_config.get_config_warning(self.cr, self.uid, self.error_msg_wo_menu, context=None) |
60 | |
61 | # Check type |
62 | self.assertIsInstance(res, openerp.exceptions.Warning) |