Odoo Help

0

How to assign one2many's field as header in report

By
sridhar
on 7/4/14, 6:01 AM 855 views

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

0
Swalih muhammed
On 7/5/14, 1:02 AM

use section in sxw file

How can you explain it...

sridhar
on 7/5/14, 1:39 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/4/14, 6:01 AM
Seen: 855 times
Last updated: 3/16/15, 8:10 AM