Skip to content

Instantly share code, notes, and snippets.

@denihida1216
Created August 17, 2020 13:26
Show Gist options
  • Save denihida1216/b15578bd028aab38bfe9e9953d30b087 to your computer and use it in GitHub Desktop.
Save denihida1216/b15578bd028aab38bfe9e9953d30b087 to your computer and use it in GitHub Desktop.
Odoo Munculkan Kode dan Nama di Many2one
@api.multi
def name_get(self):
result = []
for record in self:
display_name = '[' + record.code + '] ' + record.name
result.append((record.id, display_name))
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment