Odoo Help

2

0
1 Answer
0
Avatar

Vasiliy Birukov Russian Federation

--Vasiliy Birukov--
3631
| 8 6 10
Togliatty, Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov Russian Federation
6/3/13, 2:56 AM

In your example Priority is label of field, not attribute priority!

Just for selection field, second parametr is attribute string (that define label). So if you omit name of parametr in field, then apply predefined order of parametrs.

It's equivalent to:

'priority': fields.selection([('0','Low'),('1','Normal'),('2','High')], string='Priority', states={'waiting':[('readonly',True)],'closed':[('readonly',True)]}, required=True),
6 Comments
omprakash India
6/3/13, 3:43 AM

Hi wowas , Thanks for immediate reply.Can you please explain this line of code ..'priority':fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'), [ addons/crm/report/crm_lead_report.py] ...In this line Priority describe which property ?

kvas Russian Federation
6/3/13, 5:48 AM

For selection field - predefined order of parametrs: fields.selection(values, string, ...). So first parametr is list of values (key-label tuples), and second is label of field. It's equivalent to: 'priority':fields.selection(values=crm.AVAILABLE_PRIORITIES, string='Priority'),

omprakash India
6/7/13, 1:10 PM

Hi kvas , Thanks for reply .. From your point i can understand the property .But still i have doubt from < Technical Documentation - priority: Not used? > What they explain ? And once again thank for reply

Vasiliy Birukov Russian Federation
6/8/13, 3:50 AM

I think it reserved for future use.

omprakash India
6/8/13, 8:25 AM

Hi wowas , thank for your reply...

shanky India
4/30/14, 6:59 AM

BUT IN WHAT SCENARIO WE SHOULD USE "priority" ATTRIBUTE IN OUR FIELD? PROPER DOCUMENTATION IS NOT AVAILABLE SO CAN ANYONE HELP?

Ask a Question
Writer
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
Odoo Training Center

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

Test it now