create invoice using picking order policy on delivery order produces traceback

Bug #1049499 reported by Jalpesh Patel(OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

Bug Description

install sale,stock_invoice_directly module

Steps to reproduce the problem:-
1) create sale order using picking order policy ondelivery order confirmed it.
2) compile delivery order and create invoice at that time it's given following trace

Server Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/addons/web/common/session.py", line 51, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/netsvc.py", line 362, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/addons/audittrail/audittrail.py", line 495, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/addons/stock/wizard/stock_invoice_onshipping.py", line 106, in open_invoice
    res = self.create_invoice(cr, uid, ids, context=context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/addons/stock/wizard/stock_invoice_onshipping.py", line 138, in create_invoice
    inv_type = picking_pool._get_invoice_type(active_picking)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/addons/stock/stock.py", line 946, in _get_invoice_type
    if pick.invoice_state == '2binvoiced':
  File "/home/odoo/runbot/static/openerp-dev-trunk-17003/server/openerp/osv/orm.py", line 479, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field invoice_state not found in browse_record(stock.picking, 22

Thanks,
pja

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
summary: - create invoice using piking order policy on delivery order it's give
- trace back
+ create invoice using picking order policy on delivery order produces
+ traceback
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jalpesh Patel(OpenERP) (pja-openerp) wrote :

Hello
     This issue has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1049499-pja branch.
     Revision ID: <email address hidden>
     Revision No:7424
Thanks,
pja

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Hardik Sanchawat (OpenERP) (hsa-openerp) wrote :

Hello,

Can't reproduce in latest trunk. Revision no are:
server(4508)
addons(7848)
web(3307)

Thanks
- HSA

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.