** Changed in: openobject-server
   Importance: Undecided => Low

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
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/888315

Title:
  duplicate and _inherits

Status in OpenERP Server:
  Confirmed

Bug 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 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/888315/+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

Reply via email to