Look at the video. 1. When i select Administrator the active_id / active_ids is 1 as the id of Administrator. 2. When i click on Attendance by Month the active_id/active_ids is 1 and form id is 44 3. When i click Print active_id/active_ids is changed to the value of the form id (in this case 44)
Maybe on your test that was your first form and form id 1 has matched Administrator id 1. Try clicking Print and the form id will increase and you will get the error i'm getting. Maybe context should be somehow passed to the form and the form should pass that context but in this process active_ids are changed to the value of the form id. Maybe my solution is not very good, but it solves this problem Regards, Nikola ** Attachment added: "active_ids.ogv" https://bugs.launchpad.net/openobject-addons/+bug/902391/+attachment/2633223/+files/active_ids.ogv -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to OpenERP Project Group. https://bugs.launchpad.net/bugs/902391 Title: hr_attendance web client active_ids Status in OpenERP Addons (modules): Incomplete Bug description: Using the latest trunk data I'm having this problem: openerp-web - 1669 openobject-server - 3863 openobject-addons - 5913 When i select a user and click on Attendance by month report active_ids are passed OK to the wizard, but when i click Print on the wizard active_ids value is changed with the value of the form id. This is a only happening in web client. I don't think it's general web client bug because if i try to get a report for Products everything is OK. To reproduce problem go to HR, open Employees, check one of the employees, click on Attendance by Month report and click Print. If you have more employees from demo you will get report for different user each time, but if you have only Administrator you will get report for Administrator the first time and then error because the form id will be 2, 3, 4, ... etc and there is no employee with that id. Regards, Nikola To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/902391/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

