Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7944715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:38:07+00:00 2026-06-04T00:38:07+00:00

I am writing a module in OpenERP that would inherit from the Accounts module.

  • 0

I am writing a module in OpenERP that would inherit from the Accounts module. Below is my simplified code

from osv import fields, osv
import decimal_precision as dp

class account_molly(osv.osv):

    def __computeOB(self, cr, uid, ids, context=None):
        res = []
        return 0

    def __computeCB(self, cr, uid, ids, context=None):
        res = []
        return 0

    _name = "account.molly"
    _description = "This is Molly Special Account View"
    _inherit = "account.account"
    _columns = {
        'opening_balance': fields.function(__computeOB, digits_compute=dp.get_precision('Account'), method=True, string='Opening Balance'),
        'end_balance': fields.function(__computeCB, digits_compute=dp.get_precision('Account'), method=True, string='End Balance'),
    }   

account_molly()

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

When I try to install the module, I get

AttributeError: 'NoneType' object has no attribute '_columns'

Please what could be the problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:38:09+00:00Added an answer on June 4, 2026 at 12:38 am

    Please check the dependency of the module you have created. In the openerp.py file, in the dependency list if ‘account’ is not added, please add it. If this didnt solve your problem please provide the error log

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Description I'm writing module for Android (JAVA) that use native code (C) .
I'm writing a little scraper. Here's the code so far. from urllib import urlopen
I am writing a module in Drupal 7, that shows some data from database
I'm writing a kernel module that needs to read the value of bitrate from
I'm writing a module that has several methods. Let's consider this : package MyPackage;
I'm writing a python module for a device that interacts with a user supplied
I'm writing an Account module which should take care of everything about accounts: registration,
I'm writing a module that has some functions dealing with text files. I'm new
I am writing a module that provides one function and needs an initialization step,
hi there i was writing a module for opencart that let's the user chose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.