The account column (account_id) of the invoice shows the code and name of the account. How can you do just to show the code or just a few digits of the name. that way it takes up a lot of screen space for only 1 items.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
2140
Tampilan
You can write as following :
class AccountAccount(models.Model):
_inherit = 'account.account'
@api.multi
def name_get(self):
result = []
for account in self:
name = account.code
result.append((account.id, name))
return result
Hi,
I think you can use the name_get function.just try that.Here is an example in version 8 Name Get
Just convert to your odoo version
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Apr 25
|
2227 | ||
|
1
Feb 25
|
665 | ||
|
2
Feb 25
|
1166 | ||
Regarding Odoo Functional Consultant
Diselesaikan
|
|
2
Jan 25
|
1286 | |
|
1
Des 24
|
2220 |