Activity log for bug #888315

Date Who What changed Old value New value Message
2011-11-09 22:04:25 Stéphane Bidoul (Acsone) bug added bug
2011-11-14 16:26:22 Stéphane Bidoul (Acsone) description Hello, This one could also be titled "duplicating a project also duplicates timesheets", but I'm reporting it in framework as it is linked to the behaviour of copy and _inherits (with s). How to reproduce: - 6.0 with demo data, modules project and analytic - create a project named test1 - add an analytic entry on account test1 (say, a timesheet) - duplicate analytic account test1 to test2, the timesheets are not duplicated, which is correct - duplicate project test1 to test3 -> the timesheets of test1 are duplicated on test3 which is incorrect In this case, project.project _inherits account.analytic.account and both objects override the copy method. The problem is that when you duplicate the project, the overridden method on analytic account (which set default['lines_ids'] to []) is never called, and therefore all the analytic lines are duplicated. I assume similar problem can occur in other areas using _inherits. Best regards, -sbi Hello, This one could also be titled "duplicating a project also duplicates timesheets", but I'm reporting it in framework as it is linked to the behaviour of copy and _inherits (with s). How to reproduce: - 6.0 with demo data, modules project and analytic - create a project named test1 - add an analytic entry on account test1 (say, a timesheet) - duplicate analytic account test1 to test2, the timesheets are not duplicated, which is correct - duplicate project test1 to test3 -> the timesheets of test1 are duplicated on test3 which is incorrect In this case, project.project _inherits account.analytic.account and both objects override the copy method. The problem is that when you duplicate the project, the overridden copy method on analytic account (which set default['lines_ids'] to []) is never called, and therefore all the analytic lines are duplicated. I assume similar problem can occur in other areas using _inherits. Best regards, -sbi
2011-11-25 04:50:24 Jignesh Rathod(OpenERP) openobject-server: importance Undecided Low
2011-11-25 04:50:24 Jignesh Rathod(OpenERP) openobject-server: status New Confirmed
2011-11-25 04:50:24 Jignesh Rathod(OpenERP) openobject-server: assignee OpenERP's Framework R&D (openerp-dev-framework)
2012-08-29 11:00:04 Launchpad Janitor branch linked lp:~sbi/openobject-addons/addons-6.1-bug888315
2012-10-31 13:13:28 Stéphane Bidoul (Acsone) bug added subscriber Olivier Dony (OpenERP)