From 79084f2967026e5943bb75d9daa223be751cd936 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 26 Nov 2012 15:19:44 +0100 Subject: [PATCH] [FIX] domain on invoice lines bzr revid: fp@tinyerp.com-20121126141944-9613k5raqmzzv1tp --- addons/account/account_invoice_view.xml | 10 +++++----- addons/hr_timesheet/hr_timesheet.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 1ccc06926d8..5c5a25880cb 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -61,7 +61,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -199,7 +199,7 @@ domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '!=', 'view')]" on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)"/> + domain="[('type','!=','view'), ('company_id', '=', parent.company_id)]"/> @@ -229,7 +229,7 @@ - + @@ -354,7 +354,7 @@ domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '!=', 'view')]" on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)"/> + domain="[('type','!=','view'), ('company_id', '=', parent.company_id)]"/> diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py index 216541501b1..9e5337492d9 100644 --- a/addons/hr_timesheet/hr_timesheet.py +++ b/addons/hr_timesheet/hr_timesheet.py @@ -195,7 +195,7 @@ class account_analytic_account(osv.osv): _inherit = 'account.analytic.account' _description = 'Analytic Account' _columns = { - 'use_timesheets': fields.boolean('Use Timesheets', help="Check this field if this project manages timesheets"), + 'use_timesheets': fields.boolean('Timesheets', help="Check this field if this project manages timesheets"), } def on_change_template(self, cr, uid, ids, template_id, context=None):