Odoo Help


2 Antwoorden

Emipro Technologies Pvt. Ltd. India

--Emipro Technologies Pvt. Ltd.--
| 7 8 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. India
05-03-15 01:05


It is simple possible using define _constraints for that field. In that you can define python function to manage validation. So, you can manage as you want llike value shouldn't "0" or value must follow any special pattern. You can define your validation as like below.

_constraints = [ _check_function, "Message of wrong entry", ['field1','field2', ... ] ]

def _chech_function(self, cr, uid, ids, context=None):

    //Your code to manage entered record.

    //You can return True to allow entered record or you can return False to deny entered record.


I hope this will help you.

1 Opmerking
Ankit H Gandhi(AHG) India
05-03-15 01:11

this code fully work..give up + one vote

Brahim EL ALLIOUI Marokko
05-03-15 04:33


Thank you very much for your answer

When I issue a payment for an invoice (Customer invoice for exemple), the system accepts zero as payement value.This seems illogical to me ,I think this had to be managed by core functionnalities. and not by adding some python code..

Am new to Odoo, but I was sure that this kind of validation rules would be implemented easily (or natively)...

Thanks in advance for your clarifications.


Stel een vraag
Blijf op de hoogte
1 volger(s)
Over deze 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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now