From 8f96a13855ddf271ae705da42e1ce1dec9db0b47 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 12 Aug 2015 11:19:42 +0200 Subject: [PATCH 1/4] [FIX] mrp_repair: typo correction "Fals" instead of "False" --- addons/mrp_repair/wizard/make_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp_repair/wizard/make_invoice.py b/addons/mrp_repair/wizard/make_invoice.py index a6e93aca064..5859e6b69a3 100644 --- a/addons/mrp_repair/wizard/make_invoice.py +++ b/addons/mrp_repair/wizard/make_invoice.py @@ -57,7 +57,7 @@ class make_invoice(osv.osv_memory): form_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form') form_id = form_res and form_res[1] or False tree_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_tree') - tree_id = tree_res and tree_res[1] or Fals + tree_id = tree_res and tree_res[1] or False return { 'domain': [('id','in', newinv.values())], From 528c15cc7bce92dbfb757133cf88a5997a30ac92 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 11 Aug 2015 15:04:48 +0200 Subject: [PATCH 2/4] [FIX] account_analytic_plans: creating an analytic distribution When creating an analytic distribution, the field "plan_id" must be required. opw:646788 --- addons/account_analytic_plans/account_analytic_plans_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_analytic_plans/account_analytic_plans_view.xml b/addons/account_analytic_plans/account_analytic_plans_view.xml index 42b17ae06c3..500d6a1a404 100644 --- a/addons/account_analytic_plans/account_analytic_plans_view.xml +++ b/addons/account_analytic_plans/account_analytic_plans_view.xml @@ -74,7 +74,7 @@ - + From 85b2e607bf55be9fe557ed62110404db143774d5 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 12 Aug 2015 17:34:51 +0200 Subject: [PATCH 3/4] [FIX] crm: prevent use a sales tag from another team. On the `categ_ids` fields definition on `crm.lead`, a domain has been added in order to prevent the use of a sales tag belonging to another sales team. As the domain was overidden in the form views, with a different domain, it was allowed to use a sales tag from another sales team. Besides, the domain applied in the form views, `[('object_id.model','=','crm.lead')]` is included in the domain applied in the fiel definition. Closes #2898 --- addons/crm/crm_lead_view.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 651735b432a..a477a8a4ae6 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -164,7 +164,6 @@ @@ -436,9 +435,7 @@ - + context="{'object_name': 'crm.lead'}"/> From 937b9575c034cacebc645544f7e2410a2cf0a797 Mon Sep 17 00:00:00 2001 From: Thomas Rehn Date: Mon, 6 Oct 2014 10:51:55 +0200 Subject: [PATCH 4/4] [FIX] account: check for profit/loss accounts in method `button_confirm_cash` of `account.cash.statement` The check was verifying that the profit/loss account was set on the journal, and if it was, it raised that it wasn't, which is obviously wrong. This was solved in Odoo 8.0 by replacing the code by something more readable in 9dc9169, and the same logic to check that the profit/loss accounts are set is still there. Closes #2924 --- addons/account/account_cash_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index bd053b22352..11efed54d08 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -296,7 +296,7 @@ class account_cash_statement(osv.osv): continue for item_label, item_account in TABLES: - if getattr(obj.journal_id, item_account): + if not getattr(obj.journal_id, item_account): raise osv.except_osv(_('Error!'), _('There is no %s Account on the journal %s.') % (item_label, obj.journal_id.name,))