Replace name_get, name_search with get_rec_name and search_rec_name
This commit is contained in:
+1
-3
@@ -32,10 +32,8 @@ class Purchase(OSV):
|
||||
continue
|
||||
if not account_selection_obj.check_root(cursor, user,
|
||||
[line.analytic_accounts.id]):
|
||||
line_name = purchase_line_obj.name_get(cursor, user,
|
||||
line.id, context=context)[0][1]
|
||||
self.raise_user_error(cursor, 'analytic_account_required',
|
||||
(line_name, line.id), context=context)
|
||||
(line.rec_name, line.id), context=context)
|
||||
return res
|
||||
|
||||
Purchase()
|
||||
|
||||
Reference in New Issue
Block a user