Project Task field Remaining Hours don't update automatically in Web Client

Bug #304410 reported by Dainius Malachovskis (Sandas)
4
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Husen Daudi

Bug Description

Add work done in project. After saving Task, field Remaining Hours is updated autmatically in GTK Client. But is not automatic update don't work in Web Client.

Revision history for this message
Navrang Oza (noz-tiny) wrote :

Field Remaining Hours is filled when onchange event occur on Planned Hour.
So you have to press TAB to fill Remaining Hours field.

And after saving task it is filled automatically in my application.
In your application if its not working then press TAB button after filling Planned Hour.

Thanks...

Changed in openobject-client-web:
status: New → Invalid
Revision history for this message
Dainius Malachovskis (Sandas) (dainius-malachovskis) wrote :

With TAB is everything okey, but I am taking about Work Done in task, project.task.work table. Do the following steps in different clients:
1. Create task with for example 16 planned hours.
2. Start task.
3. Write in "Task Work" field in project.task.work table new line with 4 hours.
4a. In the GTK client in field Remaining Hours at the moment you have 12 hours.
4b. In the Web client in field Remaining Hours at the moment you have 16 hours.

Changed in openobject-client-web:
status: Invalid → New
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

May be it's due because it saves readonly fields ?

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Ok, we should implement this feature in another way. I propose this: set remaining hours as readonly when the task is open. Put a button on the right of remaining hours to reevaluate time. It opens a window that changes the value of this field.

Or, we change the web client so that it reloads the whole form after having saved a line ?

Noz, what do you prefer ? Both solutions are fine for me.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Hda is working on it. I attached the proposed change in the project task view.

Revision history for this message
Navrang Oza (noz-tiny) wrote :

Hello sir,

Change in web client to reload whole form after saving a line is not possible.

Thanks.

Revision history for this message
Amit Mendapara (cristatus) wrote :

The problem is due to the way the web client saves O2M records. The GTK client saves the entire record including all nested O2M records while the web client saves only parent record when you click on `Save` or `Save & Edit` button.

I think the better solution is to reimplement the server code that calculates those values.

Husen Daudi (husendaudi)
Changed in openobject-client-web:
assignee: nobody → hda-tinyerp
status: New → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

No, it's not good at all ! You did not created the wizard and you completly broke the view. Please change this.

The button must open a wizard that allows you to change the remaining hour value. You just put a compute button that is unusefull. Please review the screenshot attached to the bug.

Changed in openobject-client-web:
status: Fix Committed → Confirmed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

fixed, it updatesx when you save.

Changed in openobject-client-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.