From a94fb3012e97f2df39269f640525b8ddbbbfc04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 21 Dec 2009 12:01:56 +0100 Subject: [PATCH] Use root user for create/delete default properties in account chart creation (transplanted from 6a5adb9683c2c26293ad3f946b0a42d3f08780c2) --- account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account.py b/account.py index f4501b40da..45e0c072d1 100644 --- a/account.py +++ b/account.py @@ -1905,8 +1905,8 @@ class CreateChartAccount(Wizard): ('res', '=', False), ('company', '=', datas['form']['company']), ], context=context) - property_obj.delete(cursor, user, property_ids, context=context) - property_obj.create(cursor, user, { + property_obj.delete(cursor, 0, property_ids, context=context) + property_obj.create(cursor, 0, { 'name': 'account_receivable', 'field': account_receivable_field_id, 'value': 'account.account,' + \ @@ -1923,8 +1923,8 @@ class CreateChartAccount(Wizard): ('res', '=', False), ('company', '=', datas['form']['company']), ], context=context) - property_obj.delete(cursor, user, property_ids, context=context) - property_obj.create(cursor, user, { + property_obj.delete(cursor, 0, property_ids, context=context) + property_obj.create(cursor, 0, { 'name': 'account_payable', 'field': account_payable_field_id, 'value': 'account.account,' + \