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

access to child fields on xml ?

By
BCA
on 7/16/13, 1:27 PM 540 views

class task(osv.osv): _inherit = "project.task" _description = "Project task BCA TEST" _columns = { 'next_task_ids': fields.many2many('project.task', 'project_task_rel_bca', 'prv_task_id', 'next_task_id', 'Next Tasks', states={'cancelled':[('readonly',True)]}), 'previous_task_ids': fields.many2many('project.task', 'project_task_rel_bca', 'next_task_id', 'prv_task_id', 'Previous Tasks', states={'cancelled':[('readonly',True)]}), }

class project_task_rel_bca(osv.osv): #_inherit = "project_task_rel_bca" _name = 'project.task.rel.bca'
#_description = 'Project rel Tasks BCA TEST' _columns = { 'generation': fields.char('generation',size=6) }

project_task_rel_bca() <record id="view_task_form2_bca" model="ir.ui.view"> <field name="name">project.task.form.bca</field> <field name="model">project.task</field> <field eval="1" name="priority"/> <field name="arch" type="xml"> <form string="Project" version="7.0"> <field name="previous_task_ids">
<tree string="test" editable="top"> <field name="name"/> <field name="project_id"/> <field name="user_id"/> <field name="progress" widget="progressbar"/> HELP INSERT => <field name="generation"/> </tree> </field> </form> </record>

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/16/13, 1:27 PM
Seen: 540 times
Last updated: 3/16/15, 8:10 AM