When generating serial numbers or importing them, the old lines are still present and the quantity done gets raised by the quantity of the added lines. This forces the user to manually remove each old line one by one. This ensures that old lines are removed by the amount of newly created lines. closes odoo/odoo#140618 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>