Browse Source

[IMP] Added default name that is an actual copy of the name instead of "<name> (Copy)"

14.0
kevinkhao 5 years ago
committed by Kevin Khao
parent
commit
ecc63841f7
  1. 1
      partner_address_version/models/res_partner.py

1
partner_address_version/models/res_partner.py

@ -30,6 +30,7 @@ class ResPartner(models.Model):
"version_hash": version_hash,
"parent_id": self.parent_id and self.parent_id.id or self.id,
"date_version": fields.Datetime.now(),
"name": self.name,
}
versioned_partner = self.copy(default=default)
return versioned_partner

Loading…
Cancel
Save