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.
Getting this error: AttributeError: 'int' object has no attribute 'get'
with the following code: class account_invoice_refund(osv.osv):
_inherit = 'account.invoice.refund' def MES_Refund_Button(self,cr,uid,ids,context): transaction_id = str( self.pool.get('account.invoice').read(cr,uid,ids,['mes_code'],context['active_id'])['mes_code'] )
I extended the account_invoice object with those columns already, but pushing that button from the wizard doesn't get the data field from the account_invoice object
I guess the broader question asked here is: How do I properly get information from a view that isn't the current one?
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: 10/2/13, 5:22 PM|
|Seen: 2264 times|
|Last updated: 3/16/15, 8:10 AM|