Odoo Help

Welcome!

This community 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.

0

How to assign one2many's field as header in report

By
sridhar
on 7/4/14, 6:01 AM 716 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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