Duplicate case also copies history tab

Bug #615257 reported by Els Van Vossel (Foxy)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Rucha (Open ERP)

Bug Description

When you duplicate a lead in V6 using the Duplicate button or by clicking CTRL+Shift+D, it also copies the History of the selected lead.

Related branches

Changed in openobject-addons:
assignee: nobody → DHS(Open ERP) (dhs-openerp)
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

It's a normal behaviour, i think

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Els Van Vossel (Foxy) (els-vanvossel) wrote :

I was just wondering what might be the use of having a history from a previous lead on a new lead? You duplicate a lead, creation date is updated, but the history already contains lines which may date from a couple of months before.

Revision history for this message
Samantha (samantha-z-mathews) wrote :

well, i agree to esl van vossel.
we here in my organization have the same case sometimes, we dont want history as its useless for second case.
our customers often complain abut it, this would really help us if it is fixed.
openerp please see thru this.

Revision history for this message
filsys (office-filsystem) wrote : Re: [Bug 615257] Re: Duplicate lead also copies history tab

+1 for Ess Van Vossel

well, like in copy leads, when I use return picking wizard, if the
original picking has accounting moves (with stock_anglo_saxon or with
account to customer location), then, according with
stock/wizard/wizard_return.py where pick_obj.copy() method is used for
create new stock.picking and stock.move, picking return create once
again accounting move lines of the original picking. We use the method
create() instead of copy().

Thanks

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote : Re: Duplicate lead also copies history tab

Hello Guys,

Would you please apply this quick patch and notify us?

Thanks.

Revision history for this message
Els Van Vossel (Foxy) (els-vanvossel) wrote :

It works for the lead. I also noted that the Date Opened on the Extra Info tab is copied from the original lead. Maybe also leave it empty.

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hi Els Van Vossel (OpenERP),

Well I agree with your comment.

The fields related to date viz. date_open, date_closed also need to be set empty on copy.

Here is an improved patch.

Thanks for the concern.

Keep posting.

Revision history for this message
Els Van Vossel (Foxy) (els-vanvossel) wrote :

Great, it works. Thanks

Revision history for this message
Samantha (samantha-z-mathews) wrote :

nice patch and it works.
thanks a lot dhs(openerp).

Changed in openobject-addons:
status: Invalid → Confirmed
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

It has been fixed in trunk,
Revision-id: <email address hidden>
Revision No: 4538.
Thanks

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Samantha (samantha-z-mathews) wrote :

i am sorry, but this code is nt good.
do you ever have a field date_closed and dateopen inside mail_gateway module?
this has to be overridden on crm module.
use the crm.patch as a reference.
thanks.

Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Samantha (samantha-z-mathews) wrote :

can you have approve dhs-openerp?

Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hi Samantha,
I agree with you,
Thanks for your comment,

Changed in openobject-addons:
status: Confirmed → In Progress
assignee: DHS(Open ERP) (dhs-openerp) → rpa (Open ERP) (rpa-openerp)
summary: - Duplicate lead also copies history tab
+ Duplicate case also copies history tab
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hi Samantha,
It is fixed again in trunk at revision-id: <email address hidden>
revno:4656.
Can you check please,
Thanks

Changed in openobject-addons:
status: In Progress → 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.