Problem for duplicating a record

Bug #740134 reported by Dinil UD
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

I am getting trouble on duplicating a record, because of the one2many field. For example i am trying to duplicate the partner record, all the invoice line of of that partner is duplication. Now i am affried to do duplicate function on openerp

Related branches

affects: openobject-server → openobject-addons
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dinil UD (dinilud) wrote :

Actually this is not the problem of any addons. We need to refine the copy method of orm

Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello Dinil,

Indeed the problem comes from the addons just check the code of invoice.py line no : 1592 file in account module where res.partner object is inherited. We need to override the copy method of res.partner here and in that we have to update the dictionary with invoice_ids as false.

Thanks.

Revision history for this message
Dinil UD (dinilud) wrote : Re: [Bug 740134] Re: Problem for duplicating a record

I think the best way is, avoid the readonly one2many field data from the
duplication. I believe this can easily done by changing the orm. Any way the
decision is up to you

On Wed, Mar 23, 2011 at 3:02 PM, Azazahmed Saiyed (OpenERP) <
<email address hidden>> wrote:

> Hello Dinil,
>
> Indeed the problem comes from the addons just check the code of
> invoice.py line no : 1592 file in account module where res.partner
> object is inherited. We need to override the copy method of res.partner
> here and in that we have to update the dictionary with invoice_ids as
> false.
>
> Thanks.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/740134
>
> Title:
> Problem for duplicating a record
>
> Status in OpenERP Modules (addons):
> Confirmed
>
> Bug description:
> I am getting trouble on duplicating a record, because of the one2many
> field. For example i am trying to duplicate the partner record, all
> the invoice line of of that partner is duplication. Now i am affried
> to do duplicate function on openerp
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-addons/+bug/740134/+subscribe
>

--
Thanks & regards,
Dinil

Revision history for this message
Dinil UD (dinilud) wrote :

I already saw the code. Are you sure is there any no such model exist on openerp, which create problem while duplicating record?

I think the best way is, avoid the readonly one2many field data from the duplication. I believe this can easily done by changing the orm. Any way the decision is up to you

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
Somesh Khare (somesh.khare) wrote :

Hello Dinil,

It is fixed in lp:~openerp-dev/openobject-addons/trunk-bug-740134-skh branch. It will be merge soon with trunk addons.
I hope this will solve your problem.

Revision ID: <email address hidden>
Revision No: 4604

Thanks,
skh

qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

This bug has been fixed in trunk, but continues to affect addons/6.0

Revision history for this message
Russell Briggs (russell-briggs) wrote :

One of our customers has just experienced this bug. I can't believe this is considered a Medium problem! - it resulted in them paying a supplier Twice as much as they owed them!!!

Please change priority to critical and fix in 6.0 branch please!! (or I will submit a patch if necessary, but not a hard problem to fix)

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.