Odoo Help


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.


Attribute Error: '<object_name>' object has no attribute 'message_get_subscription_data'

Kibong Moon
on 1/15/15, 9:09 AM 729 views

I'm getting Odoo Server Error while opening a form.

I made a new class called product_mine which is _inherits-ed from "product.product".

And the form view is inherit from "product.product_normal_form_view".


class product_mine(osv.osv):
    _name = "product_mine"
    _description = "My Product"
    _inherits = {'product.product': 'product_id'}
    _columns = {
        'country_id': fields.many2one('res.country','Country of Origin', readonly=False, required=False),
        'product_id': fields.many2one('product.product', 'Product', ondelete='cascade', required=True, auto_join=True)

        <record id="my_product_normal_form_view" model="ir.ui.view">
            <field name="name">My Product Form</field>
            <field name="model">product_mine</field>
            <field name="mode">primary</field>
            <field eval="7" name="priority"/>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <field name="default_code" position="after">
                    <field name="country_id"/>

Nguyen Hoang
On 1/22/15, 3:27 AM

Your class must inherit mail.thread. Add _inherit = ['mail.thread']  and it will work.

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)


Asked: 1/15/15, 9:09 AM
Seen: 729 times
Last updated: 3/16/15, 8:10 AM