mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
convert_to_column() seems to be the replacement of _symbol_set() in v10
This commit is contained in:
committed by
Florian da Costa
parent
3a6b303b6a
commit
98442a9f60
@@ -266,7 +266,6 @@ class AccountMoveLine(models.Model):
|
||||
]
|
||||
keys = [k for k in move_store[0].keys() if k in avail]
|
||||
keys.sort()
|
||||
print "keys==================", keys
|
||||
return keys
|
||||
|
||||
def _prepare_insert(self, move, cols):
|
||||
@@ -276,9 +275,7 @@ class AccountMoveLine(models.Model):
|
||||
move_copy = move
|
||||
for k, col in move_copy.iteritems():
|
||||
if k in cols:
|
||||
print "DIR self._fields[k]=", dir(self._fields[k])
|
||||
move_copy[k] = self._fields[k]._symbol_set[1](col)
|
||||
print "move_copy[k]==========", move_copy[k]
|
||||
move_copy[k] = self._fields[k].convert_to_column(col, None)
|
||||
return move_copy
|
||||
|
||||
def _prepare_manyinsert(self, move_store, cols):
|
||||
|
||||
Reference in New Issue
Block a user