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 9244843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:07:52+00:00 2026-06-18T09:07:52+00:00

I created a new Module for OpenERP 7.0 which basically is a placeholder for

  • 0

I created a new Module for OpenERP 7.0 which basically is a placeholder for a scheduler action.

Now when I created my method with this:

def _method_name(self, cr, uid):

It worked fine. But I need some extra arguments to it. I used this:

def _method_name(self, cr, uid, arg1, arg2, arg3, arg4):

This should work, right? Frankly I have no idea.
Also I don’t know what to write in the Openerp’s scheduler action’s argument line.
Do I need to pass self, cr, uid as well? Or is it enough to pass my own?

  • 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-18T09:07:53+00:00Added an answer on June 18, 2026 at 9:07 am

    Explanation for self, cr, uid params:

    self – It is Python concept, “self” in python refers to the instance variable. It is a reference to the current object. It is equivalent to “this” in other languages.

    cr – current database cursor in openerp, used in openerp for builtin methods like search, write etc. we need to pass this param for the built in methods which required it in their schema.

    uid – logged in user id, required to manage rules and access rights.

    • self is required one

    • for normal functions cr and uid are optional parameters.

    • but as per the ir.cron object schema, it requires cr and uid parameters in scheduler method (In ver 6 not sure for ver 7)

    you can add extra parameters using variables or positional args or keyword args.

    If possible define variable with default values.

    E.g :

    def run_scheduler(self, cr, uid, arg1=False, arg2=False, context=None, kargs*):
        #your code here
    

    Hope, it could help.

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

Sidebar

Related Questions

I created a new View (LogView) in Infrastructure.Module project. This view will be used
I've created a custom module (which currently only defines a new Exception class), and
I have created new aspx file within a module which I am going to
I created a module that implements a new shipping method to magento. Currently the
I have play-framework application that uses one module which I've created by play new-module
I am new to OpenERP. I am using the Medical module. When registering a
I have created new module called 'currency' and configured routes in module.config. It is
I have created a new module in Orchard CMS, i have a new event
I created a new module and a new top level menu item in the
I created a new module for my user dashboard in the content area. It

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.