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.
Please refer below code.
_inherit = "account.voucher"
def default_get(self, cr, uid, fields, context=None):
data = super(account_voucher, self).default_get(cr, uid, fields, context=context)
acc_inv_obj = self.pool.get('account.invoice')
for acc_inv_data in acc_inv_obj.browse(cr, uid, context.get('active_ids'), context=context):
data['date_inv'] = acc_inv_data.date_invoice
Hope that code help for you.
Ankit H Gandhi.
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: 2/9/16, 6:12 AM|
|Seen: 554 times|
|Last updated: 2/10/16, 4:15 AM|