I created a model called res.reference to manage customer references, and it was done successfully. Now i want to add two fields of res.reference to sales order view so i added them in sale.order, but when i add them i got this error KeyError: 'name' please help... File "C:\Program Files\OpenERP 6.1-1\server.\openerp\osv\orm.py", line 2258, in name_get KeyError: 'name'
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
what is field name you are using, if you use field name(name) change it, its works, show me code or post the code. or you did not give in your new module __openerp.py give 'depends': ['sale'],
if you use inherit class sale_order(osv.osv):
_inherit = 'sale.order'
_columns = {
'target_value':fields.integer('Target Value'),
'lead_target':fields.integer('Lead Target'),
}
sale_order() you dont want to give _name ="new name"
if the answer is correct just help the others or wrong just show me the code i will help you
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ść | |
---|---|---|---|---|
What is `state` in Many2one field?
Rozwiązane
|
|
1
lut 24
|
1560 | |
|
1
sty 22
|
3386 | ||
|
0
gru 15
|
5240 | ||
|
0
mar 15
|
4583 | ||
|
1
lis 24
|
2022 |
what is field name you are using if you use field name(name) change it its works show me code or post the code