Created
August 17, 2020 13:26
-
-
Save denihida1216/b15578bd028aab38bfe9e9953d30b087 to your computer and use it in GitHub Desktop.
Odoo Munculkan Kode dan Nama di Many2one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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