Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4934 มุมมอง

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'

อวตาร
ละทิ้ง

what is field name you are using if you use field name(name) change it its works show me code or post the code

คำตอบที่ดีที่สุด

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
What is `state` in Many2one field? แก้ไขแล้ว
1
ก.พ. 24
1577
1
ม.ค. 22
3416
0
ธ.ค. 15
5298
0
มี.ค. 15
4591
1
พ.ย. 24
2079