From 54298f8a514553a4adc027cbb49986278f07cb80 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 22 Jan 2013 16:55:58 +0100 Subject: [PATCH 1/6] [DOC] Title underline too short. bzr revid: vmt@openerp.com-20130122155558-rwh2cs5zfzrvg6xh --- addons/mail/doc/mail_message.rst | 9 +++++---- addons/mail/doc/mail_state.rst | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/mail/doc/mail_message.rst b/addons/mail/doc/mail_message.rst index 14055f063e0..cf8e1ab1905 100644 --- a/addons/mail/doc/mail_message.rst +++ b/addons/mail/doc/mail_message.rst @@ -4,7 +4,7 @@ mail.message ============ Models -+++++++ +++++++ ``mail.message`` is a class for holding the main attributes of a message object (notification for system message, reciving email message or sent messages). It @@ -19,7 +19,8 @@ should inherit from this class. .. versionchanged:: 7.0 ClientAction (ir.actions.client) -+++++++ +++++++++++++++++++++++++++++++++ + Inbox mail.wall @@ -56,7 +57,7 @@ ClientAction (ir.actions.client) - ``readonly`` : Read only mode, hide all action buttons and composer Fields -+++++++ +++++++ - ``type`` : usually 'email', 'comment', 'notification'. Message type: email for external email message recieve, notification for system @@ -104,4 +105,4 @@ Methods sort by id. The messages that the user can read but not in his search, are group in expandable messages. The expandable messages contain the domain to expand. - ``check_access_rule`` : - Overwrite the initial message for this model. \ No newline at end of file + Overwrite the initial message for this model. diff --git a/addons/mail/doc/mail_state.rst b/addons/mail/doc/mail_state.rst index fc2772bf094..cf1874ffca1 100644 --- a/addons/mail/doc/mail_state.rst +++ b/addons/mail/doc/mail_state.rst @@ -1,7 +1,7 @@ .. _mail_state: message_unread -============= +============== ``message_unread`` is a boolean field that states whether the document has unread messages. In previous versions, some documents were going @@ -10,7 +10,7 @@ gateway. Now the state related to messages differs from the state or stage of the document itself. message_unread and need action mechanism -+++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++ The ``mail`` module introduces a default behavior for the need_action mechanism [REF]. From 0448de981b5a7efaf16cc7abdf18f9aa8d7090a5 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 22 Jan 2013 17:02:46 +0100 Subject: [PATCH 2/6] [DOC] mail: fixed mt_ which was confused as a label by sphinx. bzr revid: vmt@openerp.com-20130122160246-fr9353n5lf25f5ak --- addons/mail/doc/mail_message.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/doc/mail_message.rst b/addons/mail/doc/mail_message.rst index cf8e1ab1905..02baf6c4708 100644 --- a/addons/mail/doc/mail_message.rst +++ b/addons/mail/doc/mail_message.rst @@ -65,7 +65,7 @@ Fields - ``subtype_id`` : Subtype of the notification for system message. The users can followe a document and choose the subtype of this document (eg: Create, Comment, Done). - You can defined new subtypes and choose his name, by agreement the id begin by "mt_" on the model + You can defined new subtypes and choose his name, by agreement the id begin by "mt\_" on the model "mail.message.subtype". - ``partner_ids`` : List of recipients, the recipients have this message in their personal mailboxe. From 26a8748029bc93c306c941e5417260047962a0c2 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 22 Jan 2013 17:08:18 +0100 Subject: [PATCH 3/6] [DOC] openerp command is now part of the server project. bzr revid: vmt@openerp.com-20130122160818-n8sx3tvgkk17zvdg --- addons/web/doc/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web/doc/conf.py b/addons/web/doc/conf.py index 7fe38022ab1..4ea60adfa91 100644 --- a/addons/web/doc/conf.py +++ b/addons/web/doc/conf.py @@ -253,5 +253,4 @@ todo_include_todos = True intersphinx_mapping = { 'python': ('http://docs.python.org/', None), 'openerpserver': ('http://doc.openerp.com/trunk/developers/server', None), - 'openerpcommand': ('http://doc.openerp.com/trunk/developers/command', None), } From e2d5e0df9e47e836cab143d1b77b0d253d1df4b8 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 22 Jan 2013 17:45:17 +0100 Subject: [PATCH 4/6] [DOC] fixed -999999 title indentation. bzr revid: vmt@openerp.com-20130122164517-ig8a44yzoretq94c --- addons/web/doc/_themes/flask/static/flasky.css_t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/doc/_themes/flask/static/flasky.css_t b/addons/web/doc/_themes/flask/static/flasky.css_t index 0280e159455..9fec3190fc9 100644 --- a/addons/web/doc/_themes/flask/static/flasky.css_t +++ b/addons/web/doc/_themes/flask/static/flasky.css_t @@ -164,7 +164,8 @@ div.body h6 { {% if theme_index_logo %} div.indexwrapper h1 { - text-indent: -999999px; + /* We don't want it, I don't know why theme_index_logo is triggered. */ + /* text-indent: -999999px; */ background: url({{ theme_index_logo }}) no-repeat center center; height: {{ theme_index_logo_height }}; } From 6e9025cbea1040ac67058f4b5cfd51d2e20832fd Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Wed, 23 Jan 2013 17:36:41 +0100 Subject: [PATCH 5/6] [IMP] oe initialize: added --coverage flag. bzr revid: vmt@openerp.com-20130123163641-uumkklqpaxkyvsr8 --- openerpcommand/initialize.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/openerpcommand/initialize.py b/openerpcommand/initialize.py index 3393c9a02d4..34c188bd583 100644 --- a/openerpcommand/initialize.py +++ b/openerpcommand/initialize.py @@ -70,8 +70,19 @@ def run(args): else: module_names = ['base'] + if args.coverage: + import coverage + # Without the `include` kwarg, coverage generates 'memory:0xXXXXX' + # filenames (which do not exist) and cause it to crash. No idea why. + cov = coverage.coverage(branch=True, include='*.py') + cov.start() openerp.netsvc.init_logger() registry = install_openerp(args.database, not args.no_create, module_names, not config['without_demo']) + if args.coverage: + cov.stop() + cov.html_report(directory='coverage') + # If we wanted the report on stdout: + # cov.report() # The `_assertion_report` attribute was added on the registry during the # OpenERP 7.0 development. @@ -99,5 +110,9 @@ def add_parser(subparsers): ' (use the `run-tests` command to choose specific' ' tests to run against an existing database).' ' Demo data are installed.') + parser.add_argument('--coverage', action='store_true', + help='report code coverage (particularly useful with --tests).' + ' The report is generated in a coverage directory and you can' + ' then point your browser to coverage/index.html.') parser.set_defaults(run=run) From 4144c0fc76fc98ef1a930a6a0019b97ef1390b53 Mon Sep 17 00:00:00 2001 From: Launchpad Translations on behalf of openerp <> Date: Fri, 25 Jan 2013 05:24:21 +0000 Subject: [PATCH 6/6] Launchpad automatic translations update. bzr revid: launchpad_translations_on_behalf_of_openerp-20130125052421-1l7nshdho8sk43gx --- openerp/addons/base/i18n/ru.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openerp/addons/base/i18n/ru.po b/openerp/addons/base/i18n/ru.po index edea0ba6376..531855cc5c3 100644 --- a/openerp/addons/base/i18n/ru.po +++ b/openerp/addons/base/i18n/ru.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-12-21 17:04+0000\n" -"PO-Revision-Date: 2012-12-27 08:02+0000\n" +"PO-Revision-Date: 2013-01-24 13:14+0000\n" "Last-Translator: Chertykov Denis \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2013-01-19 05:18+0000\n" -"X-Generator: Launchpad (build 16430)\n" +"X-Launchpad-Export-Date: 2013-01-25 05:24+0000\n" +"X-Generator: Launchpad (build 16445)\n" #. module: base #: model:ir.module.module,description:base.module_account_check_writing @@ -12228,7 +12228,7 @@ msgstr "" #: code:addons/base/ir/ir_mail_server.py:469 #, python-format msgid "Mail delivery failed" -msgstr "Доставка почты не удалось" +msgstr "Доставка почты не удалась" #. module: base #: view:ir.actions.act_window:0 @@ -13121,7 +13121,7 @@ msgstr "Содержимое" #: code:addons/base/ir/ir_mail_server.py:219 #, python-format msgid "Connection test succeeded!" -msgstr "Проверка соединения удалось!" +msgstr "Проверка соединения удалась!" #. module: base #: model:ir.module.module,description:base.module_project_gtd