From be3b0069fb8840cfb11e787e4c59baa0a28f671b Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 12 Sep 2017 09:46:31 +0200 Subject: [PATCH 1/4] [FIX] account_extra_reports: empty partner name in sales/purchase journal Before this commit, since a partner's name can be empty, a traceback was thrown while opening the report in such a case. Now, if the partner's name is falsy we don't try to do operations on it OPW 769835 closes #19400 --- addons/account_extra_reports/views/report_journal.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_extra_reports/views/report_journal.xml b/addons/account_extra_reports/views/report_journal.xml index b9a22669889..c9481d0c095 100644 --- a/addons/account_extra_reports/views/report_journal.xml +++ b/addons/account_extra_reports/views/report_journal.xml @@ -49,7 +49,7 @@ - + From 4e799fed8ee24fb30f08e9c97d38625aa42d1c7c Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 14 Sep 2017 14:46:02 +0200 Subject: [PATCH 2/4] [FIX] crm: expected closing Backport of commit abea8d3513e0d6383088c738523425be0cc04dc7 opw-771843 --- addons/crm/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index b8902cb736d..465ab6540eb 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -1158,7 +1158,7 @@ Update your business card, phone book, social media,... Send an email right now res['activity']['today'] += 1 if date_action >= date.today() and date_action <= date.today() + timedelta(days=7): res['activity']['next_7_days'] += 1 - if date_action < date.today(): + if date_action < date.today() and not opp['date_closed']: res['activity']['overdue'] += 1 # Won in Opportunities From c14eb9ae9e29977be27bc0370d7662a6acd6ab9a Mon Sep 17 00:00:00 2001 From: Odoo Translation Bot Date: Sun, 17 Sep 2017 00:29:20 +0200 Subject: [PATCH 3/4] [I18N] Update translation terms from Transifex --- addons/crm/i18n/pl.po | 14 +++++++------- addons/hr_timesheet/i18n/pl.po | 4 ++-- addons/project/i18n/hr.po | 4 ++-- addons/report/i18n/zh_CN.po | 12 ++++++------ addons/sale_stock/i18n/hr.po | 4 ++-- addons/sale_timesheet/i18n/pl.po | 4 ++-- addons/website/i18n/de.po | 4 ++-- openerp/addons/base/i18n/hr.po | 4 ++-- openerp/addons/base/i18n/tr.po | 14 +++++++------- 9 files changed, 32 insertions(+), 32 deletions(-) diff --git a/addons/crm/i18n/pl.po b/addons/crm/i18n/pl.po index 605ba4d065a..9ab266a33db 100644 --- a/addons/crm/i18n/pl.po +++ b/addons/crm/i18n/pl.po @@ -12,7 +12,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-09-22 13:15+0000\n" -"PO-Revision-Date: 2017-07-19 08:59+0000\n" +"PO-Revision-Date: 2017-09-15 12:47+0000\n" "Last-Translator: Grzegorz Grzelak \n" "Language-Team: Polish (http://www.transifex.com/odoo/odoo-9/language/pl/)\n" "MIME-Version: 1.0\n" @@ -366,7 +366,7 @@ msgstr "Na przykład: Etapy negocjacji" #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Example: Qualified stage" -msgstr "" +msgstr "Na przykład: Etap kwalifikacji" #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner @@ -430,7 +430,7 @@ msgstr "Propozycje:" #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Qualified:" -msgstr "" +msgstr "Kwalifikacje:" #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner @@ -2059,7 +2059,7 @@ msgstr "Sygnał utworzony" #: model:ir.ui.view,arch_db:crm.crm_lead_tag_form #: model:ir.ui.view,arch_db:crm.crm_lead_tag_tree msgid "Lead Tags" -msgstr "" +msgstr "Tagi sygnałów" #. module: crm #: model:ir.model,name:crm.model_crm_lead2opportunity_partner @@ -2225,13 +2225,13 @@ msgstr "Porażka" #: model:ir.ui.view,arch_db:crm.crm_opportunity_report_view_search #: model:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter msgid "Lost Reason" -msgstr "" +msgstr "Przyczyna utraty" #. module: crm #: model:ir.actions.act_window,name:crm.crm_lost_reason_action #: model:ir.ui.menu,name:crm.menu_crm_lost_reason msgid "Lost Reasons" -msgstr "" +msgstr "Powody utraty" #. module: crm #: selection:crm.lead,priority:0 selection:crm.opportunity.report,priority:0 @@ -3018,7 +3018,7 @@ msgstr "" #: code:addons/crm/sales_team.py:23 #, python-format msgid "Qualified" -msgstr "" +msgstr "Kwalifikacje" #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_lead_priority diff --git a/addons/hr_timesheet/i18n/pl.po b/addons/hr_timesheet/i18n/pl.po index 9163e777e58..4c5e71999b1 100644 --- a/addons/hr_timesheet/i18n/pl.po +++ b/addons/hr_timesheet/i18n/pl.po @@ -10,14 +10,14 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-09-14 10:26+0000\n" -"PO-Revision-Date: 2016-10-13 07:51+0000\n" +"PO-Revision-Date: 2017-09-15 12:43+0000\n" "Last-Translator: Grzegorz Grzelak \n" "Language-Team: Polish (http://www.transifex.com/odoo/odoo-9/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Language: pl\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #. module: hr_timesheet #: model:ir.ui.view,arch_db:hr_timesheet.hr_timesheet_line_form diff --git a/addons/project/i18n/hr.po b/addons/project/i18n/hr.po index d6a3d5cf0f1..0d4793bf87b 100644 --- a/addons/project/i18n/hr.po +++ b/addons/project/i18n/hr.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 09:17+0000\n" -"PO-Revision-Date: 2017-09-01 09:50+0000\n" +"PO-Revision-Date: 2017-09-11 08:53+0000\n" "Last-Translator: Bole \n" "Language-Team: Croatian (http://www.transifex.com/odoo/odoo-9/language/hr/)\n" "MIME-Version: 1.0\n" @@ -1679,7 +1679,7 @@ msgstr "Predviđanja" #. module: project #: model:ir.model.fields,field_description:project.field_project_config_settings_module_project_forecast msgid "Forecasts, planning and Gantt charts" -msgstr "" +msgstr "Predviđanja, planiranje i Ganttov dijagram" #. module: project #: model:ir.ui.menu,name:project.menu_tasks_config diff --git a/addons/report/i18n/zh_CN.po b/addons/report/i18n/zh_CN.po index 1ccf0ccdfee..9729c22a518 100644 --- a/addons/report/i18n/zh_CN.po +++ b/addons/report/i18n/zh_CN.po @@ -3,19 +3,19 @@ # * report # # Translators: -# Jeffery Chen Fan , 2015 -# Jeffery Chen Fan , 2015-2016 +# Jeffery CHEN , 2015 +# Jeffery CHEN , 2015-2016 # liAnGjiA , 2015 # liyes , 2015 -# zhanghao , 2015 +# 卓忆科技 , 2015 # liAnGjiA , 2015 msgid "" msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-12-07 10:39+0000\n" -"PO-Revision-Date: 2016-12-08 08:38+0000\n" -"Last-Translator: Martin Trigaux\n" +"PO-Revision-Date: 2017-09-13 05:57+0000\n" +"Last-Translator: liAnGjiA \n" "Language-Team: Chinese (China) (http://www.transifex.com/odoo/odoo-9/language/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -474,7 +474,7 @@ msgstr "在这个系统里没找到Wkhtmltopdf。\n 报表会被显示为html。 #: code:addons/report/models/report.py:164 #, python-format msgid "Unable to find Wkhtmltopdf on this system. The PDF can not be created." -msgstr "" +msgstr "未找到 WKhtmltopdf 系统,无法创建 PDF。" #. module: report #: model:ir.ui.view,arch_db:report.external_layout_footer diff --git a/addons/sale_stock/i18n/hr.po b/addons/sale_stock/i18n/hr.po index cee1c0862f7..a6902408b29 100644 --- a/addons/sale_stock/i18n/hr.po +++ b/addons/sale_stock/i18n/hr.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-01 06:27+0000\n" -"PO-Revision-Date: 2017-03-01 14:27+0000\n" +"PO-Revision-Date: 2017-09-11 13:03+0000\n" "Last-Translator: Bole \n" "Language-Team: Croatian (http://www.transifex.com/odoo/odoo-9/language/hr/)\n" "MIME-Version: 1.0\n" @@ -221,7 +221,7 @@ msgstr "Statistika prodajnih naloga" #. module: sale_stock #: model:ir.model.fields,field_description:sale_stock.field_res_company_security_lead msgid "Sales Safety Days" -msgstr "" +msgstr "Sigurnosni dani prodaje" #. module: sale_stock #: model:ir.model.fields,field_description:sale_stock.field_stock_location_route_sale_selectable diff --git a/addons/sale_timesheet/i18n/pl.po b/addons/sale_timesheet/i18n/pl.po index 49d1fffb14d..6168136ba11 100644 --- a/addons/sale_timesheet/i18n/pl.po +++ b/addons/sale_timesheet/i18n/pl.po @@ -9,14 +9,14 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-09-14 10:28+0000\n" -"PO-Revision-Date: 2016-10-14 15:32+0000\n" +"PO-Revision-Date: 2017-09-15 13:04+0000\n" "Last-Translator: zbik2607 \n" "Language-Team: Polish (http://www.transifex.com/odoo/odoo-9/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Language: pl\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #. module: sale_timesheet #: model:ir.model,name:sale_timesheet.model_account_analytic_line diff --git a/addons/website/i18n/de.po b/addons/website/i18n/de.po index 3f9139efbad..cfa7ebfb523 100644 --- a/addons/website/i18n/de.po +++ b/addons/website/i18n/de.po @@ -13,7 +13,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 09:18+0000\n" -"PO-Revision-Date: 2017-03-29 15:18+0000\n" +"PO-Revision-Date: 2017-09-16 17:49+0000\n" "Last-Translator: Ermin Trevisan \n" "Language-Team: German (http://www.transifex.com/odoo/odoo-9/language/de/)\n" "MIME-Version: 1.0\n" @@ -2737,7 +2737,7 @@ msgstr "Ok" #: code:addons/website/static/src/xml/website.backend.xml:5 #, python-format msgid "On Website" -msgstr "" +msgstr "Auf Website" #. module: website #: model:ir.ui.view,arch_db:website.website_planner diff --git a/openerp/addons/base/i18n/hr.po b/openerp/addons/base/i18n/hr.po index 655c63f2d54..b3bc26e5833 100644 --- a/openerp/addons/base/i18n/hr.po +++ b/openerp/addons/base/i18n/hr.po @@ -16,7 +16,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-22 07:25+0000\n" -"PO-Revision-Date: 2017-09-01 08:36+0000\n" +"PO-Revision-Date: 2017-09-12 09:24+0000\n" "Last-Translator: Martin Trigaux\n" "Language-Team: Croatian (http://www.transifex.com/odoo/odoo-9/language/hr/)\n" "MIME-Version: 1.0\n" @@ -15857,7 +15857,7 @@ msgstr "" msgid "" "The internal user that is in charge of communicating with this contact if " "any." -msgstr "" +msgstr "Korisnik koji je zadužen za komunikaciju za ovim kontaktom, ukoliko postoji." #. module: base #: model:ir.model.fields,help:base.field_ir_model_inherited_model_ids diff --git a/openerp/addons/base/i18n/tr.po b/openerp/addons/base/i18n/tr.po index b7fd96415e6..182ca7bcac2 100644 --- a/openerp/addons/base/i18n/tr.po +++ b/openerp/addons/base/i18n/tr.po @@ -18,7 +18,7 @@ msgstr "" "Project-Id-Version: Odoo 9.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-22 07:25+0000\n" -"PO-Revision-Date: 2017-08-17 01:06+0000\n" +"PO-Revision-Date: 2017-09-16 14:30+0000\n" "Last-Translator: Martin Trigaux\n" "Language-Team: Turkish (http://www.transifex.com/odoo/odoo-9/language/tr/)\n" "MIME-Version: 1.0\n" @@ -423,7 +423,7 @@ msgstr "" msgid "" "\n" " Use Plaid.com to retrieve bank statements" -msgstr "" +msgstr "\n Banka hesap özetini almak için Plaid.com servisi kullan." #. module: base #: model:ir.module.module,description:base.module_account_plaid @@ -431,7 +431,7 @@ msgid "" "\n" " Use Plaid.com to retrieve bank statements.\n" " " -msgstr "" +msgstr "\n Banka hesap özetini almak için Plaid.com servisi kullan..\n " #. module: base #: model:ir.module.module,description:base.module_l10n_multilang @@ -4889,7 +4889,7 @@ msgstr "Analitik Varsayılan Hesaplar" #. module: base #: model:ir.module.module,shortdesc:base.module_account_bank_statement_import msgid "Account Bank Statement Import" -msgstr "" +msgstr "Banka Hesap Özeti İçe Aktarımı" #. module: base #: model:ir.module.category,name:base.module_category_localization_account_charts @@ -9324,7 +9324,7 @@ msgstr "Jenerik Modüller" msgid "" "Generic Wizard to Import Bank Statements. Includes the import of files in " ".OFX format" -msgstr "" +msgstr "Banka Hesap Özeti İçe Aktarımı Sihirbazı" #. module: base #: model:ir.module.module,description:base.module_website_form @@ -10185,12 +10185,12 @@ msgstr "İçe Aktar / Dışa Aktar" #. module: base #: model:ir.module.module,shortdesc:base.module_account_bank_statement_import_ofx msgid "Import OFX Bank Statement" -msgstr "" +msgstr "QFX Formatında Banka Hesap Özeti İçe Aktarımı" #. module: base #: model:ir.module.module,shortdesc:base.module_account_bank_statement_import_qif msgid "Import QIF Bank Statement" -msgstr "" +msgstr "QIF Formatında Banka Hesap Özeti İçe Aktarımı" #. module: base #: model:ir.actions.act_window,name:base.action_view_base_import_language From 35441cfd62cc1aa7ad5507d5dc8c69218c36bc82 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Thu, 20 Oct 2016 09:10:58 +0200 Subject: [PATCH 4/4] [IMP] doc: add test classes documentation Closes #13902 --- doc/reference/testing.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst index 9523d732e0f..794b6e45b18 100644 --- a/doc/reference/testing.rst +++ b/doc/reference/testing.rst @@ -48,6 +48,11 @@ related to testing Odoo content (modules, mainly): .. autoclass:: openerp.tests.common.SingleTransactionCase :members: browse_ref, ref +.. autoclass:: openerp.tests.common.SavepointCase + +.. autoclass:: openerp.tests.common.HttpCase + :members: browse_ref, ref, url_open, phantom_js + By default, tests are run once right after the corresponding module has been installed. Test cases can also be configured to run after all modules have been installed, and not run right after the module installation: