Odoo Help

0

1
1 Answer
1
Avatar

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
7312
| 7 7 10
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Emipro has been providing a wide range of business solutions in the domain of ERP & eCommerce. We take pride in serving 1000s of contented customers across the globe with strong roots in the US, Europe & India. Being a Certified Odoo Gold Partner in India as well as the United States, we bring our rich professional experience and unrivaled technical competence to help our customers obtain efficient and cost-effective business solutions in Odoo. With our team of 50+ Odoo Experts and highly experienced business analysts, we serve our customers which are companies of all sizes, ranging from start-ups to large enterprises. 

Our ERP Services:

  • Business Need Analysis & GAP Analysis

  • ERP Migration

  • Odoo Consultancy

  • Odoo Implementation & Customization

  • Odoo Training & Support

  • Odoo Website & eCommerce Development

  • Odoo Integration (Marketplaces, eCommerce platforms, Shipping Carriers, Payment Gateways etc.)

Our Achievements:


Reach Us:

Website: www.emiprotechnologies.com

Email: info@emiprotechnologies.com

Skype: emiprotech

Emipro Technologies Pvt. Ltd.
11/04/15 00.57

Hi,

Its solution is very simple.

In your function defination you have given arguments like : def get_age_comp(self, cr, uid,ids ,context={}) here this function takes 5 arguments but when this function is calling from cron job at that time cron only pass  "self, cr, uid,context=context" 4 arguments.

So, to over come this make your function defination like below.

def get_age_comp(self, cr, uid,ids=None,context={}):

    student_ids=self.search(cr, uid,[('gender', '=like', 'm'), ('status', '=like', 'under_Age'), ('birth_date', '<', date.today() - relativedelta(years=20))])

    if student_ids:

        self.write(cr, uid, student_ids, {'status': 'get_card'}, context=context)

    return True


1 Comment
Mostafa Mohamed Abdel Monaem
11/04/15 05.46

Great :D solved thanks could i have some help here, i will be thankful :D http://stackoverflow.com/questions/29573912/ovride-write-function

Ask a Question
Keep Informed
1 follower(s)
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.

Register