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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
sie 25
|
2613 | ||
|
1
lip 25
|
1015 | ||
|
1
sie 25
|
1151 | ||
|
0
maj 25
|
1470 | ||
|
2
kwi 25
|
3621 |