← Back to team overview

openerp-india team mailing list archive

[Bug 912953] Re: Product Visible Discount causes error when entering invoice lines

 

Hello Richard,

This issue is only reproducible in all in one 6.0.2, and in 6.0.3
version it was fixed.

So would you please try with version 6.0.3 all in one for windows and as
well as this is working fine with latest stable also.

But I have faced the problem in latest trunk which is following.

[2012-01-10 09:40:07,801][?] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
TypeError: product_id_change() takes at most 15 arguments (16 given)
[2012-01-10 09:40:07,806][?] INFO:werkzeug:127.0.0.1 - - [10/Jan/2012 09:40:07]

That's why I am assigning this to RD team.

Thank you!

** Changed in: openobject-addons
   Importance: Undecided => Medium

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

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
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/912953

Title:
  Product Visible Discount causes error when entering invoice lines

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Openerp Version 6.0.2

  When entering invoice lines I get the following error.

  Traceback (most recent call last):
    File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
  TypeError: product_id_change() takes at most 14 arguments (15 given)

  I have attributed this to the Product Visible Discount Module, as it
  is only since installing this that the error occures.

  If you enter an invoice line by filling in the required fields, all it
  OK, the error only occurs when you try and reference a product (via
  the Product Field) and the system tries to fetch the data on the
  product.

  The platform is Ubuntu 10.04.1

   The following modules are installed

  name	shortdesc	latest_version
  account  Accounting and Financial Management	6.0.1.1
  account_accountant 	Accountant	6.0.1.1
  account_cancel	Account Cancel	6.0.1.1
  account_chart	Charts of Accounts	6.0.1.1
  account_followup	Accounting follow-ups management	6.0.1.0
  account_invoice_layout	Invoices Layout Improvement	6.0.1.0
  account_payment	Payment Management	6.0.1.1
  account_voucher	Accounting Voucher Entries	6.0.1.0
  analytic	Analytic Account	6.0.1.1
  base	Base	6.0.1.3
  base_action_rule	Action Rule	6.0.1.0
  base_calendar	Basic Calendar Functionality	6.0.1.0
  base_report_designer	Report designer interface module	6.0.0.1
  base_setup	Base Setup	6.0.1.0
  base_tools	Common base for tools modules	6.0.1.0
  base_vat	Base VAT - To check VAT number validity	6.0.1.0
  board	Dashboard main module	6.0.1.0
  crm	Customer & Supplier Relationship Management	6.0.1.0
  decimal_precision	Decimal Precision Configuration	6.0.0.1
  delivery	Carriers and deliveries	6.0.1.0
  document	Integrated Document Management System	6.0.2.1
  email_account	Email Invoice - Use to Send Customers or Suppliers the selected invoices attachment by Email.	6.0.1.0
  email_sale	Email Sale - Use to Send Customers the selected sale orders attachment by Email	6.0.1.0
  email_template	Email Template for OpenERP	6.0.0.7 RC
  google_map	Google Map	6.0.1.0
  hr	Human Resources	6.0.1.1
  hr_attendance	Attendances Of Employees	6.0.1.1
  hr_contract	Human Resources Contracts	6.0.1.0
  hr_expense	Human Resources Expenses Tracking	6.0.1.0
  hr_holidays	Human Resources: Holidays management	6.0.1.5
  hr_payroll	Human Resource Payroll	6.0.1.0
  hr_payroll_account	Human Resource Payroll Accounting	6.0.1.0
  hr_timesheet	Human Resources (Timesheet encoding)	6.0.1.0
  hr_timesheet_invoice	Invoice on analytic lines	6.0.1.0
  hr_timesheet_sheet	Timesheets	6.0.1.0
  knowledge	Knowledge Management System	6.0.1.0
  l10n_fr	France - Plan Comptable Général	6.0.1.0
  mail_gateway	Email Gateway System	6.0.1.0
  marketing	Marketing	6.0.1.1
  marketing_campaign	marketing_campaign	6.0.1.1
  mrp	Manufacturing Resource Planning	6.0.1.1
  process	Enterprise Process	6.0.1.0
  procurement	Procurements	6.0.1.0
  product	Products & Pricelists	6.0.1.1
  product_visible_discount	Visible Discount	6.0.1.0
  profile_tools	Miscellaneous Tools	6.0.1.0
  purchase	Purchase Management	6.0.1.1
  purchase_approve	Approve PO automatically when confirmed.	6.0.1.0
  purchase_requisition	Purchase - Purchase Requisition	6.0.0.1
  report_designer	Reporting Tools	6.0.1.0
  resource	Resource	6.0.1.1
  sale	Sales Management	6.0.1.0
  sale_crm	Creates Sales order from Opportunity	6.0.1.0
  sale_layout	Sale Order Layout	6.0.1.0
  smtpclient	Email Client	6.0.1.0
  stock	Inventory Management	6.0.1.1
  stock_invoice_directly	Invoice Picking Directly	6.0.1.0
  stock_location	Warehouse Locations Paths	6.0.1.0
  web_livechat	Live Chat Support	6.0.1.0

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


References