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

Module to extend object/table (find the module containing specific model) [Closed]

By
bogdan baltatu
on 10/2/13, 8:10 AM 1,127 views

The Question has been closed

by
Ray Carnes
on 10/03/2013 14:27:14

I want to extent a object / table and I have this error:

TypeError: The model "extended.project" specifies an unexisting parent class "project.phase" You may need to add a dependency on the parent class' module.

In __openerp__.py I put this depends:

'depends': ['base',"project","project_issue"],

In my_module.py I have this class:

class extended_project_pahse(osv.osv):
_name = "extended.project"
_inherit = "project.phase"
_columns = {
    'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {
    'company_id': lambda self, cr, uid, ctx=None: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=ctx),
}
extended_project_pahse()

What is wrong?

0

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 10/2/13, 7:16 PM

project.phase is not in project or project_issue, it is in the project_long_term module.

1) Settings --> Technical --> Database Structure --> Models

2) Search for project.phase

3) Open the document

image description

Thanks Ray,

bogdan baltatu
on 10/3/13, 7:08 AM

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 10/2/13, 8:10 AM
Seen: 1127 times
Last updated: 3/27/15, 6:37 PM