Hello,
I've got a little problem. I'm currently creating a custom module on Odoo 9 and I want to get an attribute defined in _columns in an inherit of pos_order in another class inherited : account_invoice.
How can I do that ?
Thank you in advance for your help.
if you have the order id in invoice, uisng that id you can browse pos_order record to get that attribute right?
Hi Akhil, I agree with you but the problem is the same with browse. Cause to browse in pos_order, we need to do "self.pool.get('pos.order').browse(cr, uid, ids, context=context)" but we still don't have "cr", "uid", "ids" and "context". Thanks for your help and help me if you find a solution.
Otherwise, self.reference give us the id of the order linked to the current account_invoice and matches with pos_reference from the order of pos_order.