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

Odoo Customization for Purchase Order Approvals?

By
Mazhar Iqbal Rana
on 11/5/14, 2:22 AM 811 views

Hello

How can I have approvals based on values in openerp7

Like

Superintendent can approve purchase order up to max 1000$ but CEO or manager can approve above 30000$ PO suppose

For super intendent approve button must be greyed out if PO > 1000 and similarly it should appear for CEO or manager

Hoe can I apply this in Openerp7

Thanks

2

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 11/6/14, 5:29 AM

Override the button in the XML would be the quickest solution. You can add the "attrs" tag to the button on your XML form. Then have the attrs contain an invisble or readonly tag when the user is not in a list of ceo's AND the total_amount > 1000.

Alternatively you can leave the button as is, but in python code override the action for the button. Check the uid for specific rights and the total_amount. Raise an error if the combination is like above.

For this i will be having group too?For user not in ceo list ...and yes.. this will be done by code in xml or from front end changeable?

Mazhar Iqbal Rana
on 11/6/14, 6:31 AM

I would put both in the code, that is by far the most reliable solution. Of course you will need the group to exist before you can assign functionality.

Ludo - Neobis
on 11/10/14, 4:11 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

1 follower(s)

Stats

Asked: 11/5/14, 2:22 AM
Seen: 811 times
Last updated: 3/16/15, 8:10 AM