Error with module c2c_date_in_so_line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Camptocamp Addons |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have install the module c2c_date_in_so_line on OpenERP version 6.1.1, but when I try to add a new product line on sale order I get the following error message "TypeError: product_id_change() got an unexpected keyword argument 'context'".
So we make modifications on the file sale.py from the module c2c_date_
We add the argument context on the function product_id_change;
See following our changes
*******
109 def product_
110 uom=False, qty_uos=0, uos=False, name='', partner_id=False,
111 lang=False, update_tax=True, date_order=False, packaging=False,
112- fiscal_
+ fiscal_
to_return = super(sale_
cr, uid, ids, pricelist, product, qty,
uom, qty_uos, uos, name, partner_id,
lang, update_tax, date_order, packaging,
118 - fiscal_position, flag)
+ fiscal_position, flag, context)
if not product :
return to_return
if planned_date :
else :
delay = self.pool.
date = str(DateTime.now() + DateTime.
return to_return
*******
After this modification we can add new product lines on sale order.
But now when we enter a date in the field soplanned_date and click on button_
" File "/home/
line.
File "/usr/lib/
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
TypeError: write() got multiple values for keyword argument 'context'"
Could you help us to use this module on version 6.1.1?
Regards
Virginie
Changed in c2c-addons: | |
status: | New → Confirmed |
assignee: | nobody → Nicolas Bessi - Camptocamp (nbessi-c2c) |
Hello,
We never had any opportunity to migrate this module to the 6.1 version.
If you or someone do the necessary changes for this version (I think there is not so much to do), we'll be pleased to merge the proposal.
Thanks
Guewen