← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 686033] Re: problem with VAT field in res.partner

 

Hello,

Setting this as the high priority bug as the feature of VAT validation
is broken.

The method def _construct_constraint_msg() should have an argument
context.

def _construct_constraint_msg(self, cr, uid, ids,context=None):

Thanks.

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

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

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/686033

Title:
  problem with VAT field in res.partner

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  The VAT number - GB416674925 - cannot be entered.  This VAT number is valid and correct, I have checked this with our supplier.

I have tested 30 other UK based VAT numbers and they all work fine.

When I enter this number I get the following error (from openerp client):
Traceback (most recent call last):
  File "/home/openerp/openobject-server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp/openobject-server/bin/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/openobject-server/bin/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/openobject-server/bin/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/openobject-server/bin/osv/osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/openobject-server/bin/osv/orm.py", line 3505, in write
    self._validate(cr, user, ids, context)
  File "/home/openerp/openobject-server/bin/osv/orm.py", line 1059, in _validate
    tmp_msg = msg(self, cr, uid, ids, context=context)
TypeError: _construct_constraint_msg() got an unexpected keyword argument 'context'





References