Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-580059-ksa into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580059-ksa/+merge/128646
Hello,
Install the module project_timesheet then task is linked to a billed project.
Steps to reproduce:
1)Create a new entry in task work for a task A. For example 2h
2)Save
3)Update the entry you have just created and change the time spend field to 4h
4)Save
Thanks
KSA
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580059-ksa/+merge/128646
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-580059-ksa.
=== modified file 'project_timesheet/project_timesheet.py'
--- project_timesheet/project_timesheet.py 2012-01-31 13:36:57 +0000
+++ project_timesheet/project_timesheet.py 2012-10-09 08:20:24 +0000
@@ -160,7 +160,7 @@
# Compute based on pricetype
amount_unit = timesheet_obj.on_change_unit_amount(cr, uid, line_id.id,
prod_id=prod_id, company_id=False,
- unit_amount=vals_line['unit_amount'], unit=False, journal_id=vals_line['journal_id'], context=context)
+ unit_amount=vals_line['unit_amount'], unit=False, journal_id=vals_line.get('journal_id',False), context=context)
if amount_unit and 'amount' in amount_unit.get('value',{}):
vals_line['amount'] = amount_unit['value']['amount']
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp