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

How to access the fields from sale.config.settings

By
Maniganda
on 1/22/14, 11:13 PM 1,506 views

I have created boolean fields in sale.config.settings object, and i need to start the schedular based on the boolean fields value in sale.config.settings object, how to access the field value in openerp

1
shashank verma
On 1/23/14, 12:39 AM

Hello maniganda

Py file

Def seting(self,cr,uid,ids,context=none):

sale_obj=self.pool.get('sale.config.settings') sale_bro=sale_obj.browse(cr,uid,ids)[0] value=sale_bro.ur_boolean_field

Return value

I have to create this function in sale.config.settings object? if yes then how to access this method in different object such as sale_order to check the status of the fields

Maniganda
on 1/23/14, 1:16 AM

thak you it is working

Maniganda
on 1/23/14, 1:21 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 1/22/14, 11:13 PM
Seen: 1506 times
Last updated: 3/16/15, 8:10 AM