mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] update pre-commit
This commit is contained in:
@@ -50,7 +50,7 @@ class Base(models.AbstractModel):
|
||||
# To generate externals IDS.
|
||||
match.export_data(fields)
|
||||
ext_id = match.get_external_id()
|
||||
row["id"] = ext_id[match.id] if match else row.get("id", u"")
|
||||
row["id"] = ext_id[match.id] if match else row.get("id", "")
|
||||
# Store the modified row, in the same order as fields
|
||||
newdata.append(tuple(row[f] for f in fields))
|
||||
# We will import the patched data to get updates on matches
|
||||
|
||||
Reference in New Issue
Block a user