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.
For example if i have invoice id 1, or any other invoice info. I want to show user an lnvoice link, when user click on that link user will be redirected to that invoice. Please help me in that
You can do it by creating a computed Many2one field:
invoice_id = fields.Many2one(comodel_name='account.invoice', string="Invoice", compute="_get_invoice", ) @api.one @api.depends('WHATEVER FIELDS TO BE USED IN THE CALCULATIONS')
Add all the calculations and the logic needed hear to get the ID of the invoice
self.invoice_id = ID_THAT_YOU_HAVE
This will fill the field in the view with invoice, it will be shown as a link by default.
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: 1/13/16, 8:22 AM|
|Seen: 586 times|
|Last updated: 1/14/16, 1:11 PM|