Odoo Help


Openerp 7 How i can show in _view.xml field about another addon?

mirko lazzarini
on 8/24/13, 12:10 PM 946 views

I've this little custom addon

class Project_Document(osv.osv):

'''Project Document'''
_name = 'project.qms.document'

_columns = {
    'name': fields.char('Name',size=250),
    'notes': fields.text('Note'),
    'type_id': fields.many2one('project.qms.document.type',string='Type'),
    'filname': fields.char('File Name',size=250),
    'file': fields.binary('File'),


class Project_Document_Type(osv.osv):

'''Project Document_Type'''
_name = 'project.qms.document.type'

_columns = {
    'name': fields.char('Name',size=250),
    'description': fields.text('Description'),
    'qms_code': fields.char('QMS Code',size=250),
    'file': fields.binary('File'),


How can i view 'project.qms.document' in another custom addon like this?

<openerp> <data>

<record model="ir.ui.view" id="edit_project">

        <field name="name">project.project.form</field>
        <field name="model">project.project</field>
     <field name="type">form</field>
        <field name="inherit_id" ref="project.edit_project"/>
        <field name="arch" type="xml">
    <field name='user_id' position='after'>
               <field name="type_id" />
               <field name="sales_order_id" />
        <page string="QMS">
            <group col="2" colspan="2">
                    <field name="legacy_project_code"/>
                        <field name="redmine_project" />
        <page string="Purchases">
            <group col="2" colspan="2">
        <page string="QMS Documents">

"here i must put project.qms.document"




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.


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

0 follower(s)


Asked: 8/24/13, 12:10 PM
Seen: 946 times
Last updated: 3/16/15, 8:10 AM