From d9e235f049838dd7dbfbfc4e0498738cc65f6c13 Mon Sep 17 00:00:00 2001 From: "mga (Tiny/Axelor)" Date: Mon, 9 Mar 2009 16:39:46 +0530 Subject: [PATCH 1/2] improve the message in account_id not found during creating invoice bzr revid: mga@tinyerp.com-20090309110946-ehxaixkpoitbaagw --- addons/hr_expense/hr_expense.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index 93d268cb827..1e6e18f518e 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -125,6 +125,9 @@ class hr_expense_expense(osv.osv): tax_id = [x.id for x in l.product_id.supplier_taxes_id] else: acc = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category') + if not acc: + raise osv.except_osv(_('Error !'), _('Please configure Default Expanse account for Product purchase, `property_account_expense_categ`')) + lines.append((0, False, { 'name': l.name, 'account_id': acc, From 68069e31e41c7d6b469561c6c3af30217268989a Mon Sep 17 00:00:00 2001 From: "mga (Tiny/Axelor)" Date: Mon, 9 Mar 2009 17:23:16 +0530 Subject: [PATCH 2/2] bug-fix for the wiki, make section field in the wiki group woring now on page section field will be display if the group is provides the section feature bzr revid: mga@tinyerp.com-20090309115316-xkug11cz9i084hcf --- addons/wiki/wizard/open_page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/wiki/wizard/open_page.py b/addons/wiki/wizard/open_page.py index 01987a0a072..2223af453f1 100644 --- a/addons/wiki/wizard/open_page.py +++ b/addons/wiki/wizard/open_page.py @@ -39,7 +39,7 @@ class wiz_timesheet_open(wizard.interface): group = pool.get('wiki.groups.link').browse(cr, uid, group_ids[0]) value = { - 'context': "{'group_id':%d}" % (group.group_id.id), + 'context': "{'group_id':%d, 'section':%s}" % (group.group_id.id, group.group_id.section), 'domain': "[('group_id','child_of',[%s])]" % (group.group_id.id), 'name': 'Wiki Page', 'view_type': 'form',