Purchase order fiscal position
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team | ||
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned | ||
6.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
onchange_
Needs refactoring of onchange_
Create a new purchase order, try to create a new purchase order line(even from client and web) it will raise an error
2012-10-04 09:27:44,492 21014 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/usr/local/
return f(self, dbname, *args, **kwargs)
File "/usr/local/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/
return fct_src(cr, uid, model, method, *args)
File "/usr/local/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/
name=name, price_unit=
TypeError: onchange_
2012-10-04 09:27:44,493 21014 ERROR ? openerp.netsvc: onchange_
We are using Openerp 6.1 with the latest revision of server, addons...
I tried on runbot too and it raised the same error.
Related branches
- Don Kirkby (community): Approve
- Rifakat Husen (OpenERP) (community): Approve
- Naresh(OpenERP): Pending requested
-
Diff: 21 lines (+2/-2)1 file modifiedwarning/warning.py (+2/-2)
- Holger Brunn (Therp): Approve (code review)
- Stefan Rijnhart (Opener): Approve
- Omar (Pexego): Approve (code review, no test)
-
Diff: 21 lines (+2/-2)1 file modifiedwarning/warning.py (+2/-2)
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
Changed in openobject-addons: | |
status: | Fix Committed → Confirmed |
status: | Confirmed → Fix Committed |
I don't think it;s a duplicate of...because it doesn't have anything to do
with audit ...i unninstall the audittrail module and it didn't changed
anything...a put audit rules for purchase order, purchase order line and
the same result.
The only thing that work is to modify the function from purchase_order_line
class
def onchange_ product_ uom(self, cr, uid, ids, pricelist_id, product_id,
partner_ id, date_order=False, fiscal_ position_ id=False,
name= False, price_unit=False, notes=False, context=None): product_ id(cr, uid, ids, pricelist_id, date_order, position_ id=fiscal_ position_ id, date_planned= date_planned, date_order, date_planned= date_planned,
name= name, price_unit= price_unit, notes=notes, context=context)
qty, uom_id,
date_planned=False,
"""
onchange handler of product_uom.
"""
if not uom_id:
return {'value': {'price_unit': price_unit or 0.0, 'name': name
or '', 'notes': notes or'', 'product_uom' : uom_id or False}}
return self.onchange_
product_id, qty, uom_id,
- partner_id, date_order=
fiscal_
+ partner_id, date_order=
Hope to improve in the addons.
On Thu, Oct 4, 2012 at 1:42 PM, Amit Bhavsar (Open ERP) <
<email address hidden>> wrote:
> *** This bug is a duplicate of bug 1055813 *** /bugs.launchpad .net/bugs/ 1055813 /bugs.launchpad .net/bugs/ 1061494 product_ id() got an unexpected keyword argument position_ id' product_ id() and onchange_ product_ uom() lib/python2. 7/dist- packages/ openerp- 6.1-py2. 7.egg/openerp/ osv/osv. py", lib/python2. 7/dist- packages/ openerp- 6.1-py2. 7.egg/openerp/ osv/osv. py", lib/python2. 7/dist- packages/ openerp- 6.1-py2. 7.egg/openerp/ addons_ 6.1/audittrail/ audittrail. py", lib/python2. 7/dist- packages/ openerp- 6.1-py2. 7.egg/openerp/ osv/osv. py", lib/python2. 7/dist- packages/ openerp- 6.1-py2. 7.egg/openerp/ addons_ 6.1/purchase/ purchase. py", product_ uom price_unit, notes=notes, context=context) product_ id() got an unexpected keyw...
> https:/
>
> ** This bug has been marked a duplicate of bug 1055813
> [Trunk/6.1]Cannot add category to employee with audittrail
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Purchase order fiscal position
>
> Status in OpenERP Addons (modules):
> New
>
> Bug description:
> onchange_
> 'fiscal_
>
> Needs refactoring of onchange_
> from purchase order line.
>
> Create a new purchase order, try to create a new purchase order
> line(even from client and web) it will raise an error
>
> 2012-10-04 09:27:44,492 21014 ERROR ? openerp.osv.osv: Uncaught exception
> Traceback (most recent call last):
> File
> "/usr/local/
> line 121, in wrapper
> return f(self, dbname, *args, **kwargs)
> File
> "/usr/local/
> line 176, in execute
> res = self.execute_cr(cr, uid, obj, method, *args, **kw)
> File
> "/usr/local/
> line 495, in execute_cr
> return fct_src(cr, uid, model, method, *args)
> File
> "/usr/local/
> line 164, in execute_cr
> return getattr(object, method)(cr, uid, *args, **kw)
> File
> "/usr/local/
> line 710, in onchange_
> name=name, price_unit=
> TypeError: onchange_