Odoo Help


Modifiying value from a transient to a non transient object

Omi Harjani
on 9/26/16, 1:27 AM 524 views
class stock_transfer(osv.osv):
_columns={'psd_allow_logo':fields.boolean('Alow Logo'),
class indent_report(osv.osv_memory):
 _inherit = "indent.report"
_columns = {
     'psd_allow_logo':fields.boolean('Alow Logo'),'psd_allow_logo':fields.boolean('Alow Logo'),
def write(self, cr, uid, ids, psd_allow_logo, context = None):
    res = super(indent_report, self).write(cr, uid, ids, values, context = active_ids)
if 'psd_allow_logo' in values:
       for res in self.browse(cr, uid, ids, context = active_ids):
           self.pool.get('stock.transfer').write(cr, uid, [res.stock_transfer_id.id], {'psd_allow_logo': values['psd_allow_logo'],}, context = active_ids)
    return res}
#i'm trying to write the value from indent_report.psd_allow_logo to stock_transfer.psd_allow_logo But the write function is'nt working.
Omi Harjani
On 9/26/16, 2:16 AM
#adding that to indent.report solved the issue, i was missing active_ids

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/26/16, 1:27 AM
Seen: 524 times
Last updated: 9/26/16, 2:16 AM