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.
Dear Drees Far,
Using below code you will pass the value in pop-up
write this code inside your button function if your button type is object
raise osv.except_osv(_('Warning'), _('Your message %s.') % (fetching value))
first import the library
1.from openerp.tools.translate import _
2. Define your function like below.
def reverse_stock(self, cr, uid, ids, context=None):
product_obj = self.pool.get('product.product')
for data in self.browse(cr, uid, ids, context=None):
for line_data in data.invoice_line:
if line_data.quantity < line_data.product_id.qty_available:
raise osv.except_osv(_('Warning'), _('Your total available products are %s.') % (line_data.product_id.qty_available))
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 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: 12/1/15, 10:24 AM|
|Seen: 705 times|
|Last updated: 12/3/15, 12:36 PM|