← Back to team overview

openerp-india team mailing list archive

[Bug 1098514] Re: invoicing an order as a fixed price or percentage deposit doesn’t work

 

** Changed in: openobject-addons
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1098514

Title:
  invoicing an order as a fixed price or percentage deposit doesn’t work

Status in OpenERP Addons (modules):
  In Progress

Bug description:
  create a sales order with invoicing policy as invoice on demand.
  Create an invoice from this and try to invoice 30% of the order. Anything other than invoicing the full amount leads to this stack trace:

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/opt/openerp-web/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/opt/openerp-web/addons/web/controllers/main.py", line 1082, in call_button
      action = self._call_kw(req, model, method, args, {})
    File "/opt/openerp-web/addons/web/controllers/main.py", line 1070, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/opt/openerp-web/addons/web/session.py", line 40, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/opt/openerp-web/addons/web/session.py", line 28, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/opt/openerp-web/addons/web/session.py", line 101, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/opt/openerp-web/addons/web/session.py", line 87, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/server/openerp/netsvc.py", line 289, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/opt/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/opt/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/addons/sale/wizard/sale_make_invoice_advance.py", line 186, in create_invoices
      for sale_id, inv_values in self._prepare_advance_invoice_vals(cr, uid, ids, context=context):
    File "/opt/addons/sale/wizard/sale_make_invoice_advance.py", line 81, in _prepare_advance_invoice_vals
      uom_id=False, partner_id=sale.partner_id.id, fposition_id=sale.fiscal_position.id)
  TypeError: product_id_change() got an unexpected keyword argument 'uom_id'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1098514/+subscriptions


References