Odoo Help


AttributeError: "Field 'saleorder_confirm_ids' does not exist in object 'browse_record(sale.order, 194803)'"'

on 8/8/13, 5:33 AM 930 views

Client Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\common\http.py", line 180, in dispatch File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\controllers\main.py", line 1559, in run File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\common\http.py", line 608, in send

Server Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\web\common\http.py", line 593, in send File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\netsvc.py", line 360, in dispatch_rpc File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\service\web_services.py", line 586, in dispatch File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\osv.py", line 167, in execute_kw File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\osv.py", line 121, in wrapper File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\osv.py", line 176, in execute File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\osv.py", line 164, in execute_cr File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\base\ir\ir_actions.py", line 657, in run File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\tools\safe_eval.py", line 241, in safe_eval File "", line 1, in <module> File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\orm.py", line 368, in function_proxy File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server\openerp\addons\sales_confirm\sales_confirm.py", line 18, in action_button_confirm File "C:\Program Files (x86)\OpenERP 6.1-20130214-004441\Server\server.\openerp\osv\orm.py", line 478, in __getattr__ AttributeError: "Field 'saleorder_confirm_ids' does not exist in object 'browse_record(sale.order, 194803)'"

    class sale_order_inherit(osv.osv):
        _inherit = "sale.order"
        def action_button_confirm(self, cr, uid, ids, context=None):
    #        order_ids =[] 
    ##        assert len(ids) == 1, 'This option should only be used for a single id at a time.'
    wf_service = netsvc.LocalService('workflow')
    for obj in self.browse(cr, uid, ids, context=context):
        for saleorder in obj.saleorder_confirm_ids:
            wf_service.trg_validate(uid, 'sale.order', saleorder.id, 'order_confirm', cr)

           # redisplay the record as a sales order
    view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sale', 'view_order_tree')
    view_id = view_ref and view_ref[1] or False,
    if order_ids:
        return {
            'type': 'ir.actions.act_window',
            'name': _('Sales Order'),
            'res_model': 'sale.order',
            'res_id': order_ids[0],
            'view_type': 'tree',
            'view_mode': 'form',
            'view_id': view_id,

        return True

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

0 follower(s)


Asked: 8/8/13, 5:33 AM
Seen: 930 times
Last updated: 3/16/15, 8:10 AM