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

class subject(osv.osv):
    _name = 'subject'
    _columns = {
        'name':fields.char('Subject', size=20),
        'subject_mark': fields.float('Subject Mark'),
    }
subject()

class mark_details(osv.osv):
    _name = 'subject'
    _columns = {
        'subject_mark':fields.one2many('subject','name','Subject and Marks'),
    }
mark_details()

i need a report with one2many subject_mark, subject are ceated by user manualy like English, Maths, Science and etc subjects, what ever these subject are added by the paticular student, this subjects will come on the report header, how to do this.

 

i need a report to this format:

student name                          English            Maths               Science               New subjects

Sridhar                                        50                   50                     50                         50

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

use section in sxw file

อวตาร
ละทิ้ง
ผู้เขียน

How can you explain it...

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3617
9
เม.ย. 20
8420
2
ก.พ. 19
6308
2
พ.ค. 18
8476
4
เม.ย. 18
17777