asset duplication must not copy move_lines

Bug #1241968 reported by Ferdinand
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3

Bug Description

to reproduce
confirm one depreciation line and copy the asset

fixed by adding 'account_move_line_ids':[],
def copy(
....
        asset = self.browse(cr, uid, id, context=context)
        default.update({'depreciation_line_ids': [],'history_ids': [], 'account_move_line_ids':[], 'name': asset.name+ " (copy)", 'code': asset.code+ " (copy)", 'state': 'draft'})

the "copy" text is necessary to be able to distinguish the new from old asset

Tags: asset

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Amit Parik (amit-parik)
tags: added: asset
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Chirag Dodiya(OpenERP) (chirag.dodiya-openerp) wrote :

Hello,

It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1241968-cod

revision-id: <email address hidden>

revno: 8954.

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
no longer affects: ocb-addons
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.