Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How can I have approvals based on values in openerp7
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
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.
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
|Asked: 11/5/14, 2:22 AM|
|Seen: 1053 times|
|Last updated: 3/16/15, 8:10 AM|